summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)Author
2009-04-28Blank line Makefile cleanups.Bruce Momjian
2009-04-26Update citext expected output to exactly match the real output, ratherTom Lane
than having some whitespace discrepancy. Although whitespace is supposed to be ignored in our regression tests, for some reason buildfarm member spoonbill doesn't like it.
2009-04-23varstr_cmp and any comparison function that piggybacks on it can returnHeikki Linnakangas
any negative or positive number, not just -1 or 1. Fix comment on varstr_cmp and citext test case accordingly. As pointed out by Zdenek Kotala, and buildfarm member gothic moth.
2009-04-15Remove beer-ware license from crypt-md5.c, perMagnus Hagander
approval from Poul-Henning Kamp. This makes the file the same standard 2-clause BSD as the rest of PostgreSQL.
2009-04-07Remove useless (leftover?) extern declaration.Tom Lane
2009-04-07Defend against non-ASCII letters in fuzzystrmatch code. The functionsTom Lane
still don't behave very sanely for multibyte encodings, but at least they won't be indexing off the ends of static arrays.
2009-04-05Remove contrib/intarray's definitions of the <@ and @> operators, so that theyTom Lane
don't cause confusion with the built-in anyarray versions of those operators. Adjust the module's index opclasses to support the built-in operators in place of the private ones. The private implementations are still available under their historical names @ and ~, so no functionality is lost. Some quick testing suggests that they offer no real benefit over the core operators, however. Per a complaint from Rusty Conover.
2009-04-02Fix memory allocation for output of hstore type.Teodor Sigaev
Per "maosen.zhang" <maosen.zhang@alibaba-inc.com> report.
2009-03-31Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to readTom Lane
temporary tables of other sessions; that is unsafe because of the way our buffer management works. Per report from Stuart Bishop. This is redundant with the bufmgr.c checks in HEAD, but not at all redundant in the back branches.
2009-03-26Make pg_standby's maxretries option do what one would expect. Fujii MasaoTom Lane
2009-03-25Add btree_gin contrib module.Tom Lane
Teodor Sigaev and Oleg Bartunov
2009-03-25Adjust the APIs for GIN opclass support functions to allow the extractQuery()Tom Lane
method to pass extra data to the consistent() and comparePartial() methods. This is the core infrastructure needed to support the soon-to-appear contrib/btree_gin module. The APIs are still upward compatible with the definitions used in 8.3 and before, although *not* with the previous 8.4devel function definitions. catversion bump for changes in pg_proc entries (although these are just cosmetic, since GIN doesn't actually look at the function signature before calling it...) Teodor Sigaev and Oleg Bartunov
2009-03-25Fix old thinko in pgp.h: the idea is to declare some named enum types,Tom Lane
not global variables of anonymous enum types. This didn't actually hurt much because most linkers will just merge the duplicated definitions ... but some will complain. Per bug #4731 from Ceriel Jacobs. Backpatch to 8.1 --- the declarations don't exist before that.
2009-03-18Don't set the signal handler for SIGQUIT on Windows. Buildfarm shows thatHeikki Linnakangas
reinstalling the default signal handler doesn't work as it is on Windows. Presumably core dumps on SIGQUIT are not a problem on Windows, so rather than figure out what header files or other changes are required to make it work, just don't bother.
2009-03-18Don't intercept SIGQUIT as a signal to trigger failover; that's whatHeikki Linnakangas
postmaster uses for immediate shutdown. Trap SIGUSR1 as the preferred signal for that. Per report by Fujii Masao and subsequent discussion on -hackers.
2009-03-15Fix contrib/hstore to throw an error for keys or values that don't fit in itsTom Lane
data structure, rather than silently truncating them. Andrew Gierth
2009-02-27Equip the programs installed by contrib with proper --help and --versionPeter Eisentraut
options and normally formatted help output.
2009-02-26Add a -w/--no-password option that prevents all password prompts to allPeter Eisentraut
programs that have a -W/--password option. In passing, remove the ancient PSQL_ALWAYS_GET_PASSWORDS compile option.
2009-02-25Clean up help (-?) output.Peter Eisentraut
2009-02-25Remove feof(stdin) calls related to when to prompt for a password,Peter Eisentraut
leftovers from when the password was read from stdin.
2009-01-28Fix bug with multiple evaluation of tsearch2 compatibility trigger, triggerTeodor Sigaev
data should be restored. Backpatch only for 8.3 because previous versions haven't such layer.
2009-01-07Fix executor/spi.h to follow our usual conventions for include files, ie,Tom Lane
not include postgres.h nor anything else it doesn't directly need. Add #includes to calling files as needed to compensate. Per my proposal of yesterday. This should be noted as a source code change in the 8.4 release notes, since it's likely to require changes in add-on modules.
2009-01-06Remove references to pgsql-ports and pgsql-patches mailing lists fromTom Lane
various documentation, since those lists are now dead/deprecated. Point to pgsql-bugs and/or pgsql-hackers as appropriate.
2009-01-06Remove outdated Japanese README files per discussion.Tatsuo Ishii
2009-01-05Add EmitWarningsOnPlaceholders calls to contrib modules that are likely toTom Lane
get listed in custom_variable_classes.
2009-01-04Add contrib/pg_stat_statements for server-wide tracking of statement executionTom Lane
statistics. Takahiro Itagaki
2009-01-02Tweak guc.c to allow underscores in the names of custom variable classes,Tom Lane
and change auto_explain's custom GUC variables to be named auto_explain.xxx not just explain.xxx. Per discussion in connection with the pg_stat_statements patch, it seems like a good idea to have the convention that custom variable classes are named the same as their defining module. Committing separately since this should happen regardless of what happens with pg_stat_statements itself.
2009-01-01Add comma so this copyright notice is picked up in 2010.Bruce Momjian
2009-01-01Fix a couple of missed copyright dates.Tom Lane
2009-01-01Update copyright for 2009.Bruce Momjian
2008-12-28Support window functions a la SQL:2008.Tom Lane
Hitoshi Harada, with some kibitzing from Heikki and Tom.
2008-12-15Improve comment about why sleep is used by pg_standby to handle 'copy'Bruce Momjian
file size problem.
2008-12-15Add comment about GNUWin32's cp not having the file system problem.Bruce Momjian
2008-12-15Add missing 'break' in Win32 switch statement, reported by Martin ZaunBruce Momjian
2008-12-01Refactor crosstab() to build and return a tuplestore instead of usingTom Lane
value-per-call mode. This should be more efficient in normal usage, but the real problem with the prior coding was that it returned with a SPI call still active. That could cause problems if execution was interleaved with anything else that might use SPI.
2008-11-30Fix dblink and tablefunc to not return with the wrong CurrentMemoryContext.Tom Lane
Per buildfarm results.
2008-11-30Add a "LIKE = typename" clause to CREATE TYPE for base types. This allowsTom Lane
the basic representational details (typlen, typalign, typbyval, typstorage) to be copied from an existing type rather than listed explicitly in the CREATE TYPE command. The immediate reason for this is to provide a simple solution for add-on modules that want to define types represented as int8, float4, or float8: as of 8.4 the appropriate PASSEDBYVALUE setting is platform-specific and so it's hard for a SQL script to know what to do. This patch fixes the contrib/isn breakage reported by Rushabh Lathia.
2008-11-28Fix an oversight in uninstall_isn.sql: must drop operator families explicitly.Tom Lane
2008-11-28Cosmetic cleanups in contrib/isn (doesn't fix the passbyval problem)Tom Lane
2008-11-26Add %expect 0 to all parser input files to prevent conflicts slipping by.Peter Eisentraut
2008-11-19Add auto-explain contrib module for automatic logging of the plans ofTom Lane
slow-running queries. Takahiro Itagaki
2008-11-14Reduce contrib/intagg to a thin wrapper around the new core functionsTom Lane
array_agg() and unnest(). We could drop it entirely in the future, but let's keep it for a release or two as a compatibility assist.
2008-11-12Support of multibyte encoding for pg_trgmTeodor Sigaev
2008-11-10Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the BIO_s_mem bufferTom Lane
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.
2008-11-07Add some more citext test cases, per David Wheeler. Also remove theTom Lane
citext-to-and-from-xml tests, since those caused variation between installations with or without libxml without really proving much. Instead repurpose citext_1.out as the expected results in glibc en_US (and probably other) locales.
2008-11-02Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple,Tom Lane
and heap_deformtuple in favor of the newer functions heap_form_tuple et al (which do the same things but use bool control flags instead of arbitrary char values). Eliminate the former duplicate coding of these functions, reducing the deprecated functions to mere wrappers around the newer ones. We can't get rid of them entirely because add-on modules probably still contain many instances of the old coding style. Kris Jurka
2008-10-31Unite ReadBufferWithFork, ReadBufferWithStrategy, and ZeroOrReadBufferHeikki Linnakangas
functions into one ReadBufferExtended function, that takes the strategy and mode as argument. There's three modes, RBM_NORMAL which is the default used by plain ReadBuffer(), RBM_ZERO, which replaces ZeroOrReadBuffer, and a new mode RBM_ZERO_ON_ERROR, which allows callers to read corrupt pages without throwing an error. The FSM needs the new mode to recover from corrupt pages, which could happend if we crash after extending an FSM file, and the new page is "torn". Add fork number to some error messages in bufmgr.c, that still lacked it.
2008-10-29Be more tense about not creating tuplestores with randomAccess = true unlessTom Lane
backwards scan could actually happen. In particular, pass a flag to materialize-mode SRFs that tells them whether they need to require random access. In passing, also suppress unneeded backward-scan overhead for a Portal's holdStore tuplestore. Per my proposal about reducing I/O costs for tuplestores.
2008-10-28Extend ExecMakeFunctionResult() to support set-returning functions that returnTom Lane
via a tuplestore instead of value-per-call. Refactor a few things to reduce ensuing code duplication with nodeFunctionscan.c. This represents the reasonably noncontroversial part of my proposed patch to switch SQL functions over to returning tuplestores. For the moment, SQL functions still do things the old way. However, this change enables PL SRFs to be called in targetlists (observe changes in plperl regression results).
2008-10-14Update citext expected output for recent change in error message locationTom Lane
pointers. This is only a whitespace change, which ought to be ignored by regression testing, but for some reason buildfarm member spoonbill doesn't like it.