[COMMITTERS] pgsql: Avoid integer overflow and buffer overrun in hstore_to_json().

2014-11-04 Thread Tom Lane
Avoid integer overflow and buffer overrun in hstore_to_json(). This back-patches commit 0c5783ff301ae3e47c918bfc2395129de4c5 into the 9.3 branch. At the time, Heikki just thought he was fixing an unlikely integer-overflow scenario, but in point of fact the original coding was hopelessly broke

[COMMITTERS] pgsql: doc: Move misplaced paragraph

2014-11-04 Thread Peter Eisentraut
doc: Move misplaced paragraph Branch -- REL9_4_STABLE Details --- http://git.postgresql.org/pg/commitdiff/63ff971e06461e67b8108cf360c4a6eb03adb160 Modified Files -- doc/src/sgml/protocol.sgml | 16 1 file changed, 8 insertions(+), 8 deletions(-) -- Sent v

[COMMITTERS] pgsql: doc: Move misplaced paragraph

2014-11-04 Thread Peter Eisentraut
doc: Move misplaced paragraph Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/e809fa2c80e051ed49a3ed2206dc055a10d588a4 Modified Files -- doc/src/sgml/protocol.sgml | 16 1 file changed, 8 insertions(+), 8 deletions(-) -- Sent via pgsq

[COMMITTERS] pgsql: Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPA

2014-11-04 Thread Tom Lane
Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. The previous coding assumed that we could just let buffers for the database's old tablespace age out of the buffer arena naturally. The folly of that is exposed by bug #11867 from Marc Munro: the user could later move the database

[COMMITTERS] pgsql: Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPA

2014-11-04 Thread Tom Lane
Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. The previous coding assumed that we could just let buffers for the database's old tablespace age out of the buffer arena naturally. The folly of that is exposed by bug #11867 from Marc Munro: the user could later move the database

[COMMITTERS] pgsql: Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPA

2014-11-04 Thread Tom Lane
Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. The previous coding assumed that we could just let buffers for the database's old tablespace age out of the buffer arena naturally. The folly of that is exposed by bug #11867 from Marc Munro: the user could later move the database

[COMMITTERS] pgsql: Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPA

2014-11-04 Thread Tom Lane
Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. The previous coding assumed that we could just let buffers for the database's old tablespace age out of the buffer arena naturally. The folly of that is exposed by bug #11867 from Marc Munro: the user could later move the database

[COMMITTERS] pgsql: Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPA

2014-11-04 Thread Tom Lane
Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. The previous coding assumed that we could just let buffers for the database's old tablespace age out of the buffer arena naturally. The folly of that is exposed by bug #11867 from Marc Munro: the user could later move the database

[COMMITTERS] pgsql: Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPA

2014-11-04 Thread Tom Lane
Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. The previous coding assumed that we could just let buffers for the database's old tablespace age out of the buffer arena naturally. The folly of that is exposed by bug #11867 from Marc Munro: the user could later move the database

[COMMITTERS] pgsql: Switch to CRC-32C in WAL and other places.

2014-11-04 Thread Heikki Linnakangas
Switch to CRC-32C in WAL and other places. The old algorithm was found to not be the usual CRC-32 algorithm, used by Ethernet et al. We were using a non-reflected lookup table with code meant for a reflected lookup table. That's a strange combination that AFAICS does not correspond to any bit-wise

[COMMITTERS] pgsql: Remove support for 64-bit CRC.

2014-11-04 Thread Heikki Linnakangas
Remove support for 64-bit CRC. It hasn't been used for anything for a long time. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/404bc51cde9dce1c674abe4695635612f08fe27e Modified Files -- src/include/utils/pg_crc.h| 96 - src/include/uti