[COMMITTERS] pgsql: Now that the shared library name can be adjusted in the library

2012-01-25 Thread Bruce Momjian
Now that the shared library name can be adjusted in the library test, have pg_upgrade allocate a maximum fixed size buffer for testing the library file name, rather than base the allocation on the library name. Backpatch to 9.1. Branch -- master Details --- http://git.postgresql.org/pg/c

[COMMITTERS] pgsql: Now that the shared library name can be adjusted in the library

2012-01-25 Thread Bruce Momjian
Now that the shared library name can be adjusted in the library test, have pg_upgrade allocate a maximum fixed size buffer for testing the library file name, rather than base the allocation on the library name. Backpatch to 9.1. Branch -- REL9_1_STABLE Details --- http://git.postgresql.o

[COMMITTERS] pgsql: Add pg_trigger_depth() function

2012-01-25 Thread Alvaro Herrera
Add pg_trigger_depth() function This reports the depth level of triggers currently in execution, or zero if not called from inside a trigger. No catversion bump in this patch, but you have to initdb if you want access to the new function. Author: Kevin Grittner Branch -- master Details ---

[COMMITTERS] pgsql: Allow pg_basebackup from standby node with safety checking.

2012-01-25 Thread Simon Riggs
Allow pg_basebackup from standby node with safety checking. Base backup follows recommended procedure, plus goes to great lengths to ensure that partial page writes are avoided. Jun Ishizuka and Fujii Masao, with minor modifications Branch -- master Details --- http://git.postgresql.org/

[COMMITTERS] pgsql: Make CheckIndexCompatible simpler and more bullet-proof.

2012-01-25 Thread Robert Haas
Make CheckIndexCompatible simpler and more bullet-proof. This gives up the "don't rewrite the index" behavior in a couple of relatively unimportant cases, such as changing between an array type and an unconstrained domain over that array type, in return for making this code more future-proof. Noa

[COMMITTERS] pgsql: Have \copy go through SendQuery

2012-01-25 Thread Alvaro Herrera
Have \copy go through SendQuery This enables a bunch of features, notably ON_ERROR_ROLLBACK. It also makes COPY failure (either in the server or psql) as a whole behave more sanely in psql. Additionally, having more commands in the same command line as COPY works better (though since psql splits

[COMMITTERS] pgsql: Instrument index-only scans to count heap fetches performed.

2012-01-25 Thread Robert Haas
Instrument index-only scans to count heap fetches performed. Patch by me; review by Tom Lane, Jeff Davis, and Peter Geoghegan. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/9f9135d129e915e72c8a2f770689fd72619ead49 Modified Files -- src/backend/commands