aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAge
* Fix bug per Oleksiy Shchukin - 2nd argument for dblink_get_result(text,bool)Joe Conway2009-01-03
| | | | | | | is PG_GETARG_BOOL(2), should be PG_GETARG_BOOL(1). Apply simple fix to back branches only. More extensive change to be applied to head per Tom's suggestion.
* Fix dblink and tablefunc to not return with the wrong CurrentMemoryContext.Tom Lane2008-11-30
| | | | Per buildfarm results.
* Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the BIO_s_mem bufferTom Lane2008-11-10
| | | | | | | | it was using too soon. In a situation where pg_do_encoding_conversion is a no-op, this led to garbage data returned. In HEAD, also modify the code that's ensuring null termination to make it a tad more obvious what's happening.
* Fix small bug in headline generation.Teodor Sigaev2008-10-17
| | | | | Patch from Sushant Sinha <sushant354@gmail.com> http://archives.postgresql.org/pgsql-hackers/2008-07/msg00785.php
* Fix some bugs introduced by the 8.2-era conversion of cube functions to V1Tom Lane2008-05-29
| | | | | | | | | | | | | calling convention. cube_inter and cube_distance could attempt to pfree their input arguments, and cube_dim returned a value from a struct it might have just pfree'd (which would only really cause a problem in a debug build, but it's still wrong). Per bug #4208 and additional code reading. In HEAD and 8.3, I also made a batch of cosmetic changes to bring these functions into line with the preferred coding style for V1 functions, ie declare and fetch all the arguments at the top so readers can easily see what they are.
* Fix contrib/xml2 makefile to not override CFLAGS.Tom Lane2008-05-08
|
* Fix broken compare function for tsquery_ops. Per Tom's report.Teodor Sigaev2008-04-20
| | | | | | | | | | I never understood why initial authors GiST in pgsql choose so stgrange signature for 'same' method: bool *sameFn(Datum a, Datum b, bool* result) instead of simple, logical bool sameFn(Datum a, Datum b) This change will break any existing GiST extension, so we still live with it and will live.
* Fix several datatype input functions that were allowing unused bytes in theirTom Lane2008-04-11
| | | | | | | | | | | | | results to contain uninitialized, unpredictable values. While this was okay as far as the datatypes themselves were concerned, it's a problem for the parser because occurrences of the "same" literal might not be recognized as equal by datumIsEqual (and hence not by equal()). It seems sufficient to fix this in the input functions since the only critical use of equal() is in the parser's comparisons of ORDER BY and DISTINCT expressions. Per a trouble report from Marc Cousin. Patch all the way back. Interestingly, array_in did not have the bug before 8.2, which may explain why the issue went unnoticed for so long.
* Fix core dump in contrib/xml2's xpath_table() when the input query returnsTom Lane2008-03-26
| | | | a NULL value. Per bug #4058.
* The original patch to disallow non-passworded connections to non-superusersTom Lane2008-01-03
| | | | | | | | | failed to cover all the ways in which a connection can be initiated in dblink. Plug the remaining holes. Also, disallow transient connections in functions for which that feature makes no sense (because they are only sensible as part of a sequence of operations on the same connection). Joe Conway Security: CVE-2007-6601
* Backpatch: Fix tsvector_out() and tsquery_out() to escape backslesh, add ↵Teodor Sigaev2007-11-16
| | | | | | test of that. Patch by Bruce Momjian <bruce@momjian.us>
* Have crosstab variants treat NULL rowid as a category in its own right,Joe Conway2007-11-10
| | | | | per suggestion from Tom Lane. This fixes crash-bug reported by Stefan Schwarzer.
* Defend against openssl libraries that fail on keys longer than 128 bits;Tom Lane2007-09-29
| | | | which is the case at least on some Solaris versions. Marko Kreen
* Fix crash of to_tsvector() function on huge input: compareWORD()Teodor Sigaev2007-09-26
| | | | | | | function didn't return correct result for word position greate than limit. Per report from Stuart Bishop <stuart@stuartbishop.net>
* Remove ill-considered (not to mention undocumented) attempt to makeTom Lane2007-09-14
| | | | | contrib/intarray's GIN opclass override the built-in default. Per bug #3048 and other complaints.
* Fix header's size of structs defines in ispell.Teodor Sigaev2007-09-11
|
* Fix indefinit loop in rank_cd for some corner queries.Teodor Sigaev2007-09-07
| | | | Per Daniele Varrazzo <piro@develer.com> bug report.
* Restrict pgstattuple functions to superusers. While the only one that'sTom Lane2007-08-28
| | | | | really a glaring security hole is bt_page_items, there's not a very good use-case for letting ordinary users use 'em, either.
* Fix combo_decrypt() to throw an error for zero-length input when using aTom Lane2007-08-23
| | | | | | | | padded encryption scheme. Formerly it would try to access res[(unsigned) -1], which resulted in core dumps on 64-bit machines, and was certainly trouble waiting to happen on 32-bit machines (though in at least the known case it was harmless because that byte would be overwritten after return). Per report from Ken Colson; fix by Marko Kreen.
* Fix possible core dump from pgbench -d option. Julius StroffekTom Lane2007-08-22
|
* Fix CHECK_RELATION_BLOCK_RANGE macro, which was not merely producingTom Lane2007-07-15
| | | | a warning but was outright wrong.
* Restrict non-superusers to password authenticated connectionsJoe Conway2007-07-09
| | | | | | | to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane.
* Fix caching of unsuccessful initialization of parser or configuration.Teodor Sigaev2007-04-02
| | | | Per report from Listmail <lists@peufeu.com>
* Fix parser bug on Windows with UTF8 encoding and C locale, the reason wasTeodor Sigaev2007-03-22
| | | | sizeof(wchar_t) = 2 instead of 4.
* Fix uninitialized value in pgstatindex leading to invalid values beingAlvaro Herrera2007-03-16
| | | | | | reported in some cases. Report and patch from Tatsuhito Kasahara. Also fix a couple of other bugs I noticed in skimming the surrounding code.
* Athough cube is a varlena type, nowhere was a detoasting of cube's value, soTeodor Sigaev2007-03-07
| | | | | | | | fix it. Add macroses DatumGetNDBOX, PG_GETARG_NDBOX and PG_RETURN_NDBOX. Backpatch for 8.2 too. Previous versions use version 0 calling conventions. And fmgr code detoast values for user-defined functions.
* Fix backend crash in parsing incorrect tsquery.Teodor Sigaev2007-02-12
| | | | Per report from Jon Rosebaugh <jon@inklesspen.com>
* Fix localization support for multibyte encoding and C locale.Teodor Sigaev2007-01-15
| | | | Slightly reworked patch from Tatsuo Ishii
* Backport patch.Tatsuo Ishii2007-01-10
| | | | | | | | Call srandom() instead of srand(). pgbench calls random() later, so it should have called srandom(). On most platforms except Windows srandom() is actually identical to srand(), so the bug only bites Windows users. per bug report from Akio Ishida.
* Add a defense to prevent core dumps if 8.2 version of rank_cd() is used withTom Lane2006-12-28
| | | | | | | | the 8.1 SQL function definition for it. Per report from Rajesh Kumar Mallah, such a DBA error doesn't seem at all improbable, and the cost of checking for it is not very high compared to the cost of running this function. (It would have been better to change the C name of the function so it wouldn't be called by the old SQL definition, but it's too late for that now in the 8.2 branch.)
* Fix memory reallocation conditionTeodor Sigaev2006-12-26
|
* Fix convertion for 'PFX flag N num'Teodor Sigaev2006-12-21
|
* Fix core dump of ispell for case of non-successfull initialization.Teodor Sigaev2006-12-04
| | | | | | | Previous versions aren't affected. Fix synonym dictionary init: string should be malloc'ed, not palloc'ed. Bug introduced recently while fixing lowerstr().
* Make contrib/isn pass the opr_sanity sanity checks: add missingTom Lane2006-11-24
| | | | | | | | commutator operators, and mark hash-opclass members as oprcanhash. This is a pretty ugly, brute-force solution, but it seems that getting rid of all these redundant-looking operators would require some tweaks in the core operator-resolution code to behave nicely, and I'm not willing to risk that just before RC1.
* Fix lowercasing while parse OO dictionaryTeodor Sigaev2006-11-23
|
* Avoid infinity calculations in rank_cdTeodor Sigaev2006-11-22
|
* Fix type in return valueTeodor Sigaev2006-11-21
|
* Fix bug http://archives.postgresql.org/pgsql-bugs/2006-10/msg00258.php.Teodor Sigaev2006-11-20
| | | | | | | Fix string's length calculation for recoding, fix strlower() to avoid wrong assumption about length of recoded string (was: recoded string is no greater that source, it may not true for multibyte encodings) Thanks to Thomas H. <me@alternize.com> and Magnus Hagander <mha@sollentuna.net>
* Minor code cleanup for pgcrypto: for UDFs declared to be strict, checkingNeil Conway2006-11-10
| | | | for NULL-ness of function arguments is wasted code.
* Fix two typos.Neil Conway2006-11-08
|
* New README, forgotten when docs was updatedTeodor Sigaev2006-11-08
|
* Get rid of some unnecessary dependencies on DataDir: wherever possible,Tom Lane2006-11-06
| | | | | the backend should rely on its working-directory setting instead. Also do some message-style police work in contrib/adminpack.
* Add description of new featuresTeodor Sigaev2006-10-31
|
* Code cleanup for pg_buffercache, from Mark Kirkwood.Tom Lane2006-10-22
|
* pgbench: More fix with handling default scaling factor in the defaultTatsuo Ishii2006-10-21
| | | | | | scenarios. With multiple clinets, only the first client got the right scaling factor and this gave a illusion of better performance in case of the scaling factor greater than 1.
* Marginal code cleanups in pg_logdir_ls: use ReadDir not readdir,Tom Lane2006-10-20
| | | | and avoid scribbling on its result (might be safe but why risk it)
* Add externs for optarg/optind where apparently needed. Per Magnus.Tom Lane2006-10-19
|
* Handle missing M_PI the same way we've been doing in the core code,Tom Lane2006-10-19
| | | | instead of inserting an MSVC dependency.
* Further MSVC portability fixes from Magnus.Tom Lane2006-10-19
|
* Fix a couple of places that were assuming debug_query_string couldn'tTom Lane2006-10-19
| | | | be NULL ... seems an unsafe assumption.