aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAge
* Modify pg_upgrade to set/restore all environment variables related toBruce Momjian2010-09-07
| | | | | | | collation/encoding to match English when reading controldata. This now matches the English variable setting used by pg_regress.c. Backpatch to 9.0.X.
* Make pg_archivecleanup log messages more consistent.Tom Lane2010-08-23
| | | | Erik Rijkers
* Remove extra newlines at end and beginning of files, add missing newlinesPeter Eisentraut2010-08-19
| | | | at end of files.
* Add xml_is_well_formed, xml_is_well_formed_document, xml_is_well_formed_contentTom Lane2010-08-13
| | | | | | | | functions to the core XML code. Per discussion, the former depends on XMLOPTION while the others do not. These supersede a version previously offered by contrib/xml2. Mike Fowler, reviewed by Pavel Stehule
* Get rid of a bunch of dubious error handling code in pgbench by just erroringTom Lane2010-08-12
| | | | | | out immediately on any out-of-memory condition. It's rather pointless to imagine that pgbench will be able to continue usefully after a malloc failure, and in any case there were a number of unchecked mallocs.
* Add the ability to compute per-statement latencies (ie, average executionTom Lane2010-08-12
| | | | | | times) to pgbench. Florian Pflug, reviewed by Greg Smith
* Remove the arbitrary (and undocumented) limit on the number of parameter=valueTom Lane2010-08-10
| | | | | | | | | pairs that can be handled by xslt_process(). There is much else to do here, but this patch seems useful in its own right for as long as this code survives. Pavel Stehule, reviewed by Mike Fowler
* Standardize get_whatever_oid functions for other object types.Robert Haas2010-08-05
| | | | | | | | | | | | | | | - Rename TSParserGetPrsid to get_ts_parser_oid. - Rename TSDictionaryGetDictid to get_ts_dict_oid. - Rename TSTemplateGetTmplid to get_ts_template_oid. - Rename TSConfigGetCfgid to get_ts_config_oid. - Rename FindConversionByName to get_conversion_oid. - Rename GetConstraintName to get_constraint_oid. - Add new functions get_opclass_oid, get_opfamily_oid, get_rewrite_oid, get_rewrite_oid_without_relid, get_trigger_oid, and get_cast_oid. The name of each function matches the corresponding catalog. Thanks to KaiGai Kohei for the review.
* Regression tests for new btree_gist "not equals" support.Robert Haas2010-08-03
| | | | Jeff Davis, with minor adjustments by me.
* Teach levenshtein() about multi-byte characters.Robert Haas2010-08-02
| | | | Based on a patch by, and further ideas from, Alexander Korotkov.
* Add btree_gist support for searching on "not equals".Robert Haas2010-08-02
| | | | Jeff Davis, with slight editorialization by me.
* Make details of the Numeric representation private to numeric.c.Robert Haas2010-07-30
| | | | Review by Tom Lane.
* Avoid using text_to_cstring() in levenshtein functions.Robert Haas2010-07-29
| | | | | | | Operating directly on the underlying varlena saves palloc and memcpy overhead, which testing shows to be significant. Extracted from a larger patch by Alexander Korotkov.
* Remove wildly obsolete type attribute externallength from chkpassPeter Eisentraut2010-07-28
|
* Add ssl_cipher() and ssl_version() functions to contrib/sslinfo.Robert Haas2010-07-27
| | | | Review by Dave Page.
* Adjust check_for_isn_and_int8_passing_mismatch() so it is called for allBruce Momjian2010-07-25
| | | | | | migrations. Backpatch to 9.0.
* Prevent pg_upgrade from migrating databases that use reg* data typesBruce Momjian2010-07-25
| | | | | | | where the oid is not preserved by pg_upgrade (everything but pg_type). Update documentation. Per bug report from depstein@alliedtesting.com.
* Make hstore regression tests independent of standard_conforming_strings.Robert Haas2010-07-20
| | | | Per buildfarm.
* On Win32, pg_upgrade cannot sent any server log output to the log fileBruce Momjian2010-07-13
| | | | because of file access limitations on that platform.
* Remove incorrect email address for pg_upgrade bug reports.Bruce Momjian2010-07-13
|
* In pg_upgrade, report /bin directory checks independent of /data checks.Bruce Momjian2010-07-13
|
* In pg_upgrade, prevent psql AUTOCOMMIT=off by not loading .psqlrc.Bruce Momjian2010-07-13
|
* Properly report errno/out-of-disk-space error from pg_upgrade when inBruce Momjian2010-07-09
| | | | | | | | copy mode, per report from depstein@alliedtesting.com. Patch suggestion from Magnus. Backpatch to 9.0.X.
* pgindent run for 9.0, second runBruce Momjian2010-07-06
|
* Fix a few single-file (MODULES, not MODULE_big) contrib makefiles that wereTom Lane2010-07-05
| | | | | | | | supposing that they should set SHLIB_LINK rather than LDFLAGS_SL. Since these don't go through Makefile.shlib that was a no-op on most platforms. Also regularize the few platform-specific Makefiles that did pay attention to SHLIB_LINK: it seems that the real value of that is to pull in BE_DLLLIBS, so do that instead. Per buildfarm failures on cygwin.
* Make pg_upgrade copyrights just 2010, not 2010-2010.Bruce Momjian2010-07-03
|
* Add copyrights to pg_upgrade and pg_upgrade_tools files, per Tom.Bruce Momjian2010-07-03
|
* Add CVS tags to pg_upgrade and pg_upgrade_support files, per requestBruce Momjian2010-07-03
| | | | from Tom.
* Remove hstore % text[] operator; use slice() function instead.Robert Haas2010-07-02
| | | | David Wheeler, with one small correction by me.
* Get rid of some more stuff that duplicates c.h or port.h.Tom Lane2010-07-01
|
* Remove port.h prototypes from pg_upgrade.h, per report from Robert Haas.Bruce Momjian2010-07-01
|
* Add username designations to all pg_upgrade utility calls that support it.Bruce Momjian2010-06-23
|
* Fix pg_upgrade's use of pg_ctl on Win32 to not send command and severBruce Momjian2010-06-22
| | | | | | output to the same file, because it is impossible. Also set user name for pg_dumpall in pg_upgrade.
* Updated expected-output file for hstore.Robert Haas2010-06-22
| | | | | This is an oversight in my previous patch to deprecate => as an operator name. Per buildfarm.
* Rename hstore => text[] operator to %Robert Haas2010-06-18
| | | | | This is not yet in any released version, so we still have the option to change the name. We may want to reserve the token => in a future release.
* Clean up pg_archivecleanup's error and logging output: put newlines inTom Lane2010-06-17
| | | | | | | | sane places, make messages follow project's message style guidelines. Also, avoid closedir(NULL). Fujii Masao and Tom Lane
* Fix pg_upgrade to remove malloc(0) call.Bruce Momjian2010-06-16
|
* Fix storage of getopt() return, should be 'int', for pg_upgrade.Bruce Momjian2010-06-15
| | | | Steve Singer
* Change the interpretation of the primary_key_attnums parameter ofTom Lane2010-06-15
| | | | | | | | | | dblink_build_sql_insert() and related functions. Now the column numbers are treated as logical not physical column numbers. This will provide saner behavior in the presence of dropped columns; furthermore, if we ever get around to allowing rearrangement of logical column ordering, the original definition would become nearly untenable from a usability standpoint. Per recent discussion of dblink's handling of dropped columns. Not back-patched for fear of breaking existing applications.
* Remove hstore's text[] => text[] operator.Robert Haas2010-06-15
| | | | | This is not yet in any released version, so we still have the option to backtrack. Instead, document hstore(text[], text[]). Per discussion.
* Fix dblink_build_sql_insert() and related functions to handle droppedTom Lane2010-06-15
| | | | | | | | columns correctly. In passing, get rid of some dead logic in the underlying get_sql_insert() etc functions --- there is no caller that will pass null value-arrays to them. Per bug report from Robert Voinea.
* Consolidate and improve checking of key-column-attnum arguments forTom Lane2010-06-15
| | | | | | | | | | dblink_build_sql_insert() and related functions. In particular, be sure to reject references to dropped and out-of-range column numbers. The numbers are still interpreted as physical column numbers, though, for backward compatibility. This patch replaces Joe's patch of 2010-02-03, which handled only some aspects of the problem.
* Properly define pg_upgrade global variable, per bug report from ChrisBruce Momjian2010-06-15
| | | | Ruprecht on Mac (64 bit).
* Rearrange dblink's dblink_build_sql_insert() and related routines to open andTom Lane2010-06-14
| | | | | | | | | | | lock the target relation just once per SQL function call. The original coding obtained and released lock several times per call. Aside from saving a not-insignificant number of cycles, this eliminates possible race conditions if someone tries to modify the relation's schema concurrently. Also centralize locking and permission-checking logic. Problem noted while investigating a trouble report from Robert Voinea --- his problem is still to be fixed, though.
* Files for pg_archivecleanupSimon Riggs2010-06-14
|
* New contrib module for use as an archive_cleanup_command, or as aSimon Riggs2010-06-14
| | | | standalone utility for removing files from archive.
* Update pg_upgrade C comment about cwd.Bruce Momjian2010-06-12
|
* Have pg_upgrade create its output files in the current directory, ratherBruce Momjian2010-06-12
| | | | than in a subdirectory of the $HOME directory, or $TMP in Windows.
* Avoid "identifier will be truncated" warning in dblinkItagaki Takahiro2010-06-09
| | | | | when connection string is longer than NAMEDATALEN. The previous fix for long connection name broke the behavior.
* Fix connection leak in dblink when dblink_connect() or dblink_connect_u()Itagaki Takahiro2010-06-09
| | | | | | end with "duplicate connection name" errors. Backported to release 7.4.