[COMMITTERS] pgsql: Fixed array handling in ecpg.

2015-02-11 Thread Michael Meskes
Fixed array handling in ecpg. When ecpg was rewritten to the new protocol version not all variable types were corrected. This patch rewrites the code for these types to fix that. It also fixes the documentation to correctly tell the status of array handling. Branch -- REL9_1_STABLE Details -

[COMMITTERS] pgsql: Fixed array handling in ecpg.

2015-02-11 Thread Michael Meskes
Fixed array handling in ecpg. When ecpg was rewritten to the new protocol version not all variable types were corrected. This patch rewrites the code for these types to fix that. It also fixes the documentation to correctly tell the status of array handling. Branch -- REL9_2_STABLE Details -

[COMMITTERS] pgsql: Fixed array handling in ecpg.

2015-02-11 Thread Michael Meskes
Fixed array handling in ecpg. When ecpg was rewritten to the new protocol version not all variable types were corrected. This patch rewrites the code for these types to fix that. It also fixes the documentation to correctly tell the status of array handling. Conflicts: doc/src/sgml/ecpg.s

[COMMITTERS] pgsql: Fixed array handling in ecpg.

2015-02-11 Thread Michael Meskes
Fixed array handling in ecpg. When ecpg was rewritten to the new protocol version not all variable types were corrected. This patch rewrites the code for these types to fix that. It also fixes the documentation to correctly tell the status of array handling. Branch -- REL9_4_STABLE Details -

[COMMITTERS] pgsql: Fixed array handling in ecpg.

2015-02-11 Thread Michael Meskes
Fixed array handling in ecpg. When ecpg was rewritten to the new protocol version not all variable types were corrected. This patch rewrites the code for these types to fix that. It also fixes the documentation to correctly tell the status of array handling. Branch -- REL9_3_STABLE Details -

[COMMITTERS] pgsql: Fix more memory leaks in failure path in buildACLCommands.

2015-02-11 Thread Tom Lane
Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proo

[COMMITTERS] pgsql: Fix more memory leaks in failure path in buildACLCommands.

2015-02-11 Thread Tom Lane
Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proo

[COMMITTERS] pgsql: Fix more memory leaks in failure path in buildACLCommands.

2015-02-11 Thread Tom Lane
Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proo

[COMMITTERS] pgsql: Fix more memory leaks in failure path in buildACLCommands.

2015-02-11 Thread Tom Lane
Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proo

[COMMITTERS] pgsql: Fix minor memory leak in ident_inet().

2015-02-11 Thread Tom Lane
Fix minor memory leak in ident_inet(). We'd leak the ident_serv data structure if the second pg_getaddrinfo_all (the one for the local address) failed. This is not of great consequence because a failure return here just leads directly to backend exit(), but if this function is going to try to cle

[COMMITTERS] pgsql: Fix minor memory leak in ident_inet().

2015-02-11 Thread Tom Lane
Fix minor memory leak in ident_inet(). We'd leak the ident_serv data structure if the second pg_getaddrinfo_all (the one for the local address) failed. This is not of great consequence because a failure return here just leads directly to backend exit(), but if this function is going to try to cle

[COMMITTERS] pgsql: Fix minor memory leak in ident_inet().

2015-02-11 Thread Tom Lane
Fix minor memory leak in ident_inet(). We'd leak the ident_serv data structure if the second pg_getaddrinfo_all (the one for the local address) failed. This is not of great consequence because a failure return here just leads directly to backend exit(), but if this function is going to try to cle

[COMMITTERS] pgsql: Fix minor memory leak in ident_inet().

2015-02-11 Thread Tom Lane
Fix minor memory leak in ident_inet(). We'd leak the ident_serv data structure if the second pg_getaddrinfo_all (the one for the local address) failed. This is not of great consequence because a failure return here just leads directly to backend exit(), but if this function is going to try to cle

[COMMITTERS] pgsql: Fix missing PQclear() in libpqrcv_endstreaming().

2015-02-11 Thread Tom Lane
Fix missing PQclear() in libpqrcv_endstreaming(). This omission leaked one PGresult per WAL streaming cycle, which possibly would never be enough to notice in the real world, but it's still a leak. Per Coverity. Back-patch to 9.3 where the error was introduced. Branch -- REL9_4_STABLE Deta

[COMMITTERS] pgsql: Fix missing PQclear() in libpqrcv_endstreaming().

2015-02-11 Thread Tom Lane
Fix missing PQclear() in libpqrcv_endstreaming(). This omission leaked one PGresult per WAL streaming cycle, which possibly would never be enough to notice in the real world, but it's still a leak. Per Coverity. Back-patch to 9.3 where the error was introduced. Branch -- master Details ---

[COMMITTERS] pgsql: Fix missing PQclear() in libpqrcv_endstreaming().

2015-02-11 Thread Tom Lane
Fix missing PQclear() in libpqrcv_endstreaming(). This omission leaked one PGresult per WAL streaming cycle, which possibly would never be enough to notice in the real world, but it's still a leak. Per Coverity. Back-patch to 9.3 where the error was introduced. Branch -- REL9_3_STABLE Deta

[COMMITTERS] pgsql: Fix typo in logicaldecoding.sgml.

2015-02-11 Thread Andres Freund
Fix typo in logicaldecoding.sgml. Author: Tatsuo Ishii Backpatch to 9.4, where logicaldecoding was introduced. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/8785e6e378f919827d851926ea0f400f08afd477 Modified Files -- doc/src/sgml/logicaldecoding.sgml |

[COMMITTERS] pgsql: Fix typo in logicaldecoding.sgml.

2015-02-11 Thread Andres Freund
Fix typo in logicaldecoding.sgml. Author: Tatsuo Ishii Backpatch to 9.4, where logicaldecoding was introduced. Branch -- REL9_4_STABLE Details --- http://git.postgresql.org/pg/commitdiff/9dd56460ccd7a54e8b70c05995b6aa19a7126e6a Modified Files -- doc/src/sgml/logicaldecoding

[COMMITTERS] pgsql: pg_upgrade: preserve freeze info for postgres/template1 dbs

2015-02-11 Thread Bruce Momjian
pg_upgrade: preserve freeze info for postgres/template1 dbs pg_database.datfrozenxid and pg_database.datminmxid were not preserved for the 'postgres' and 'template1' databases. This could cause missing clog file errors on access to user tables and indexes after upgrades in these databases. Back

[COMMITTERS] pgsql: pg_upgrade: preserve freeze info for postgres/template1 dbs

2015-02-11 Thread Bruce Momjian
pg_upgrade: preserve freeze info for postgres/template1 dbs pg_database.datfrozenxid and pg_database.datminmxid were not preserved for the 'postgres' and 'template1' databases. This could cause missing clog file errors on access to user tables and indexes after upgrades in these databases. Back

[COMMITTERS] pgsql: pg_upgrade: preserve freeze info for postgres/template1 dbs

2015-02-11 Thread Bruce Momjian
pg_upgrade: preserve freeze info for postgres/template1 dbs pg_database.datfrozenxid and pg_database.datminmxid were not preserved for the 'postgres' and 'template1' databases. This could cause missing clog file errors on access to user tables and indexes after upgrades in these databases. Back

[COMMITTERS] pgsql: pg_upgrade: preserve freeze info for postgres/template1 dbs

2015-02-11 Thread Bruce Momjian
pg_upgrade: preserve freeze info for postgres/template1 dbs pg_database.datfrozenxid and pg_database.datminmxid were not preserved for the 'postgres' and 'template1' databases. This could cause missing clog file errors on access to user tables and indexes after upgrades in these databases. Back

[COMMITTERS] pgsql: pg_upgrade: preserve freeze info for postgres/template1 dbs

2015-02-11 Thread Bruce Momjian
pg_upgrade: preserve freeze info for postgres/template1 dbs pg_database.datfrozenxid and pg_database.datminmxid were not preserved for the 'postgres' and 'template1' databases. This could cause missing clog file errors on access to user tables and indexes after upgrades in these databases. Back

[COMMITTERS] pgsql: pg_upgrade: preserve freeze info for postgres/template1 dbs

2015-02-11 Thread Bruce Momjian
pg_upgrade: preserve freeze info for postgres/template1 dbs pg_database.datfrozenxid and pg_database.datminmxid were not preserved for the 'postgres' and 'template1' databases. This could cause missing clog file errors on access to user tables and indexes after upgrades in these databases. Back

[COMMITTERS] pgsql: pg_upgrade: quote directory names in delete_old_cluster script

2015-02-11 Thread Bruce Momjian
pg_upgrade: quote directory names in delete_old_cluster script This allows the delete script to properly function when special characters appear in directory paths, e.g. spaces. Backpatch through 9.0 Branch -- REL9_1_STABLE Details --- http://git.postgresql.org/pg/commitdiff/08aaae40e1

[COMMITTERS] pgsql: pg_upgrade: quote directory names in delete_old_cluster script

2015-02-11 Thread Bruce Momjian
pg_upgrade: quote directory names in delete_old_cluster script This allows the delete script to properly function when special characters appear in directory paths, e.g. spaces. Backpatch through 9.0 Branch -- REL9_2_STABLE Details --- http://git.postgresql.org/pg/commitdiff/66f5217f52

[COMMITTERS] pgsql: pg_upgrade: quote directory names in delete_old_cluster script

2015-02-11 Thread Bruce Momjian
pg_upgrade: quote directory names in delete_old_cluster script This allows the delete script to properly function when special characters appear in directory paths, e.g. spaces. Backpatch through 9.0 Branch -- REL9_3_STABLE Details --- http://git.postgresql.org/pg/commitdiff/9ecd51da70

[COMMITTERS] pgsql: pg_upgrade: quote directory names in delete_old_cluster script

2015-02-11 Thread Bruce Momjian
pg_upgrade: quote directory names in delete_old_cluster script This allows the delete script to properly function when special characters appear in directory paths, e.g. spaces. Backpatch through 9.0 Branch -- REL9_4_STABLE Details --- http://git.postgresql.org/pg/commitdiff/5eef3c61ec

[COMMITTERS] pgsql: pg_upgrade: quote directory names in delete_old_cluster script

2015-02-11 Thread Bruce Momjian
pg_upgrade: quote directory names in delete_old_cluster script This allows the delete script to properly function when special characters appear in directory paths, e.g. spaces. Backpatch through 9.0 Branch -- REL9_0_STABLE Details --- http://git.postgresql.org/pg/commitdiff/4ae178f607

[COMMITTERS] pgsql: pg_upgrade: quote directory names in delete_old_cluster script

2015-02-11 Thread Bruce Momjian
pg_upgrade: quote directory names in delete_old_cluster script This allows the delete script to properly function when special characters appear in directory paths, e.g. spaces. Backpatch through 9.0 Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/056764b10248bff70

[COMMITTERS] pgsql: pg_upgrade: improve checksum mismatch error message

2015-02-11 Thread Bruce Momjian
pg_upgrade: improve checksum mismatch error message Patch by Greg Sabino Mullane, slight adjustments by me Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/dc01efa5ccdd9804b0c97d4d9b651ba9360ebb11 Modified Files -- contrib/pg_upgrade/controldata.c | 12