[COMMITTERS] pgsql: Fix busted markup.

2017-03-13 Thread Tom Lane
Fix busted markup. Oversight in commit 9ca5c8721. Per buildfarm. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/0c87cd003d9966fcb19d6998ccf90d3276b08e0c Modified Files -- doc/src/sgml/ecpg.sgml | 2 -- 1 file changed, 2 deletions(-) -- Sent via

[COMMITTERS] pgsql: Silence unused variable compiler warning

2017-03-13 Thread Alvaro Herrera
Silence unused variable compiler warning Fallout from fcec6caafa2: mark a variable in set_tablefunc_size_estimates as used for asserts only. Also, the planner_rte_fetch() call is pointless with assertions disabled, so enclose it in a USE_ASSERT_CHECKING #ifdef; fix the same problem in

[COMMITTERS] pgsql: Add a "void *" passthrough pointer for psqlscan.l's callback fun

2017-03-13 Thread Tom Lane
Add a "void *" passthrough pointer for psqlscan.l's callback functions. The immediate motivation for this is to provide clean infrastructure for the proposed \if...\endif patch for psql; but it seems like a good thing to have even if that patch doesn't get in. Previously the callback functions

[COMMITTERS] pgsql: Remove unnecessary dependency on statement_timeout in prepared_x

2017-03-13 Thread Tom Lane
Remove unnecessary dependency on statement_timeout in prepared_xacts test. Rather than waiting around for statement_timeout to expire, we can just try to take the table's lock in nowait mode. This saves some fraction under 4 seconds when running this test with prepared xacts available, and it

[COMMITTERS] pgsql: Remove unnecessary dependency on statement_timeout in prepared_x

2017-03-13 Thread Tom Lane
Remove unnecessary dependency on statement_timeout in prepared_xacts test. Rather than waiting around for statement_timeout to expire, we can just try to take the table's lock in nowait mode. This saves some fraction under 4 seconds when running this test with prepared xacts available, and it

[COMMITTERS] pgsql: Remove unnecessary dependency on statement_timeout in prepared_x

2017-03-13 Thread Tom Lane
Remove unnecessary dependency on statement_timeout in prepared_xacts test. Rather than waiting around for statement_timeout to expire, we can just try to take the table's lock in nowait mode. This saves some fraction under 4 seconds when running this test with prepared xacts available, and it

[COMMITTERS] pgsql: Remove unnecessary dependency on statement_timeout in prepared_x

2017-03-13 Thread Tom Lane
Remove unnecessary dependency on statement_timeout in prepared_xacts test. Rather than waiting around for statement_timeout to expire, we can just try to take the table's lock in nowait mode. This saves some fraction under 4 seconds when running this test with prepared xacts available, and it

[COMMITTERS] pgsql: Remove unnecessary dependency on statement_timeout in prepared_x

2017-03-13 Thread Tom Lane
Remove unnecessary dependency on statement_timeout in prepared_xacts test. Rather than waiting around for statement_timeout to expire, we can just try to take the table's lock in nowait mode. This saves some fraction under 4 seconds when running this test with prepared xacts available, and it

[COMMITTERS] pgsql: Remove unnecessary dependency on statement_timeout in prepared_x

2017-03-13 Thread Tom Lane
Remove unnecessary dependency on statement_timeout in prepared_xacts test. Rather than waiting around for statement_timeout to expire, we can just try to take the table's lock in nowait mode. This saves some fraction under 4 seconds when running this test with prepared xacts available, and it

[COMMITTERS] pgsql: Add test case for two phase commit. Also by Masahiko Sawada.

2017-03-13 Thread Michael Meskes
Add test case for two phase commit. Also by Masahiko Sawada. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/42fcad68a9c0e0ebecf6842888723cad1f9d5be2 Modified Files -- src/interfaces/ecpg/test/ecpg_schedule | 1 +

[COMMITTERS] pgsql: Document two phase commit commands in ecpg docu.

2017-03-13 Thread Michael Meskes
Document two phase commit commands in ecpg docu. Patch by Masahiko Sawada Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/9ca5c8721dfa2413e910531373395c6e18062ddf Modified Files -- doc/src/sgml/ecpg.sgml | 29 + 1 file

[COMMITTERS] pgsql: Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED.

2017-03-13 Thread Michael Meskes
Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED. The problem was that "begin transaction" was issued automatically before executing COMMIT/ROLLBACK PREPARED if not in auto commit. This fix by Masahiko Sawada fixes this. Branch -- master Details ---

[COMMITTERS] pgsql: Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED.

2017-03-13 Thread Michael Meskes
Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED. The problem was that "begin transaction" was issued automatically before executing COMMIT/ROLLBACK PREPARED if not in auto commit. This fix by Masahiko Sawada fixes this. Branch -- REL9_3_STABLE Details ---

[COMMITTERS] pgsql: Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED.

2017-03-13 Thread Michael Meskes
Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED. The problem was that "begin transaction" was issued automatically before executing COMMIT/ROLLBACK PREPARED if not in auto commit. This fix by Masahiko Sawada fixes this. Branch -- REL9_6_STABLE Details ---

[COMMITTERS] pgsql: Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED.

2017-03-13 Thread Michael Meskes
Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED. The problem was that "begin transaction" was issued automatically before executing COMMIT/ROLLBACK PREPARED if not in auto commit. This fix by Masahiko Sawada fixes this. Branch -- REL9_5_STABLE Details ---

[COMMITTERS] pgsql: Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED.

2017-03-13 Thread Michael Meskes
Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED. The problem was that "begin transaction" was issued automatically before executing COMMIT/ROLLBACK PREPARED if not in auto commit. This fix by Masahiko Sawada fixes this. Branch -- REL9_2_STABLE Details ---

[COMMITTERS] pgsql: Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED.

2017-03-13 Thread Michael Meskes
Ecpg should support COMMIT PREPARED and ROLLBACK PREPARED. The problem was that "begin transaction" was issued automatically before executing COMMIT/ROLLBACK PREPARED if not in auto commit. This fix by Masahiko Sawada fixes this. Branch -- REL9_4_STABLE Details ---

Re: [COMMITTERS] pgsql: dblink: Replace some macros by static functions

2017-03-13 Thread Tom Lane
Peter Eisentraut writes: > On 3/12/17 17:44, David Rowley wrote: >> Please accept a small patch which fixes a new compiler warning which >> started as a result of this commit. > Done. > Which compiler is that? Any compiler that didn't support

[COMMITTERS] pgsql: Include array size in forward declaration.

2017-03-13 Thread Heikki Linnakangas
Include array size in forward declaration. Some compilers require it. At least Visual Studio, according to the buildfarm, and gcc with the -pedantic flag. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/dd12bef58ccee3596066cda9ded4fc6b3399d3ba Modified Files

Re: [COMMITTERS] pgsql: dblink: Replace some macros by static functions

2017-03-13 Thread Peter Eisentraut
On 3/12/17 17:44, David Rowley wrote: > Please accept a small patch which fixes a new compiler warning which > started as a result of this commit. Done. Which compiler is that? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA,

[COMMITTERS] pgsql: Fix compiler warning

2017-03-13 Thread Peter Eisentraut
Fix compiler warning From: David Rowley Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/57488c1ce32181730a2724ceaad973c9bc2d7c3a Modified Files -- contrib/dblink/dblink.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[COMMITTERS] pgsql: Change xlog to WAL in some error messages

2017-03-13 Thread Peter Eisentraut
Change xlog to WAL in some error messages Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/1e6de941e38fde512cadf33e55e644492f12abd1 Modified Files -- src/backend/access/transam/twophase.c | 6 +++--- src/backend/access/transam/xlog.c | 6 +++---

[COMMITTERS] pgsql: Use radix tree for character encoding conversions.

2017-03-13 Thread Heikki Linnakangas
Use radix tree for character encoding conversions. Replace the mapping tables used to convert between UTF-8 and other character encodings with new radix tree-based maps. Looking up an entry in a radix tree is much faster than a binary search in the old maps. As a bonus, the radix tree

[COMMITTERS] pgsql: Remove obsolete references to JIS0201.TXT JIS0208.TXT.

2017-03-13 Thread Heikki Linnakangas
Remove obsolete references to JIS0201.TXT JIS0208.TXT. We don't use those files anymore, since commit 1de9cc0dcc. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/84892692fdedb753cfdd9a63b318b47ec640915f Modified Files --

[COMMITTERS] pgsql: initdb: Re-add translatable string that got lost

2017-03-13 Thread Peter Eisentraut
initdb: Re-add translatable string that got lost Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/d69fae203c8223c45ae1201acce46e8beb0eb6ee Modified Files -- src/bin/initdb/initdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- Sent via

[COMMITTERS] pgsql: Fix typo in comment

2017-03-13 Thread Magnus Hagander
Fix typo in comment Masahiko Sawada Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/1bfebffe81d02e6124fc604ae4293c6487ef7e83 Modified Files -- src/backend/replication/logical/snapbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sent