summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)Author
2008-01-03The original patch to disallow non-passworded connections to non-superusersTom Lane
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
2007-11-16Backpatch: Fix tsvector_out() and tsquery_out() to escape backslesh, add ↵Teodor Sigaev
test of that. Patch by Bruce Momjian <bruce@momjian.us>
2007-11-10Have crosstab variants treat NULL rowid as a category in its own right,Joe Conway
per suggestion from Tom Lane. This fixes crash-bug reported by Stefan Schwarzer.
2007-09-29Defend against openssl libraries that fail on keys longer than 128 bits;Tom Lane
which is the case at least on some Solaris versions. Marko Kreen
2007-09-26Fix crash of to_tsvector() function on huge input: compareWORD()Teodor Sigaev
function didn't return correct result for word position greate than limit. Per report from Stuart Bishop <stuart@stuartbishop.net>
2007-09-14Remove ill-considered (not to mention undocumented) attempt to makeTom Lane
contrib/intarray's GIN opclass override the built-in default. Per bug #3048 and other complaints.
2007-09-11Fix header's size of structs defines in ispell.Teodor Sigaev
2007-09-07Fix indefinit loop in rank_cd for some corner queries.Teodor Sigaev
Per Daniele Varrazzo <piro@develer.com> bug report.
2007-08-28Restrict pgstattuple functions to superusers. While the only one that'sTom Lane
really a glaring security hole is bt_page_items, there's not a very good use-case for letting ordinary users use 'em, either.
2007-08-23Fix combo_decrypt() to throw an error for zero-length input when using aTom Lane
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.
2007-08-22Fix possible core dump from pgbench -d option. Julius StroffekTom Lane
2007-07-15Fix CHECK_RELATION_BLOCK_RANGE macro, which was not merely producingTom Lane
a warning but was outright wrong.
2007-07-09Restrict non-superusers to password authenticated connectionsJoe Conway
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.
2007-04-02Fix caching of unsuccessful initialization of parser or configuration.Teodor Sigaev
Per report from Listmail <lists@peufeu.com>
2007-03-22Fix parser bug on Windows with UTF8 encoding and C locale, the reason wasTeodor Sigaev
sizeof(wchar_t) = 2 instead of 4.
2007-03-16Fix uninitialized value in pgstatindex leading to invalid values beingAlvaro Herrera
reported in some cases. Report and patch from Tatsuhito Kasahara. Also fix a couple of other bugs I noticed in skimming the surrounding code.
2007-03-07Athough cube is a varlena type, nowhere was a detoasting of cube's value, soTeodor Sigaev
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.
2007-02-12Fix backend crash in parsing incorrect tsquery.Teodor Sigaev
Per report from Jon Rosebaugh <jon@inklesspen.com>
2007-01-15Fix localization support for multibyte encoding and C locale.Teodor Sigaev
Slightly reworked patch from Tatsuo Ishii
2007-01-10Backport patch.Tatsuo Ishii
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.
2006-12-28Add a defense to prevent core dumps if 8.2 version of rank_cd() is used withTom Lane
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.)
2006-12-26Fix memory reallocation conditionTeodor Sigaev
2006-12-21Fix convertion for 'PFX flag N num'Teodor Sigaev
2006-12-04Fix core dump of ispell for case of non-successfull initialization.Teodor Sigaev
Previous versions aren't affected. Fix synonym dictionary init: string should be malloc'ed, not palloc'ed. Bug introduced recently while fixing lowerstr().
2006-11-24Make contrib/isn pass the opr_sanity sanity checks: add missingTom Lane
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.
2006-11-23Fix lowercasing while parse OO dictionaryTeodor Sigaev
2006-11-22Avoid infinity calculations in rank_cdTeodor Sigaev
2006-11-21Fix type in return valueTeodor Sigaev
2006-11-20Fix bug http://archives.postgresql.org/pgsql-bugs/2006-10/msg00258.php.Teodor Sigaev
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>
2006-11-10Minor code cleanup for pgcrypto: for UDFs declared to be strict, checkingNeil Conway
for NULL-ness of function arguments is wasted code.
2006-11-08Fix two typos.Neil Conway
2006-11-08New README, forgotten when docs was updatedTeodor Sigaev
2006-11-06Get rid of some unnecessary dependencies on DataDir: wherever possible,Tom Lane
the backend should rely on its working-directory setting instead. Also do some message-style police work in contrib/adminpack.
2006-10-31Add description of new featuresTeodor Sigaev
2006-10-22Code cleanup for pg_buffercache, from Mark Kirkwood.Tom Lane
2006-10-21pgbench: More fix with handling default scaling factor in the defaultTatsuo Ishii
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.
2006-10-20Marginal code cleanups in pg_logdir_ls: use ReadDir not readdir,Tom Lane
and avoid scribbling on its result (might be safe but why risk it)
2006-10-19Add externs for optarg/optind where apparently needed. Per Magnus.Tom Lane
2006-10-19Handle missing M_PI the same way we've been doing in the core code,Tom Lane
instead of inserting an MSVC dependency.
2006-10-19Further MSVC portability fixes from Magnus.Tom Lane
2006-10-19Fix a couple of places that were assuming debug_query_string couldn'tTom Lane
be NULL ... seems an unsafe assumption.
2006-10-19Clean up local redeclarations of variables with DLLIMPORT, per reportTom Lane
from Magnus that MSVC complains about this.
2006-10-19Fix typo.Neil Conway
2006-10-19Simplify contrib Makefiles by removing unnecessary SRCS macro,Tom Lane
per Magnus.
2006-10-11Rename function 'isexists' and 'isdefined' toTeodor Sigaev
'exist' and 'defined' accordingly. Old names are saved not mentioned in docs - for compatibility with old applications. Per discussion http://archives.postgresql.org/pgsql-hackers/2006-10/msg00571.php
2006-10-07On platforms that have getrlimit(RLIMIT_STACK), use it to ensure thatTom Lane
max_stack_depth is not set to an unsafe value. This commit also provides configure-time checking for <sys/resource.h>, and cleans up some perhaps-unportable code associated with use of that include file and getrlimit().
2006-10-05Make use of qsort_arg in several places that were formerly using klugyTom Lane
static variables. This avoids any risk of potential non-reentrancy, and in particular offers a much cleaner workaround for the Intel compiler bug that was affecting ginutil.c.
2006-10-04Improve error messages from to_tsquery per yesterday's discussion:Tom Lane
provide the bad input, and be sure to mention that we are talking about a tsearch query.
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-10-02Update tsearch2 README.Bruce Momjian
Robert Treat