[COMMITTERS] pgsql: Reorganize logical replication worker disconnect code

2017-06-01 Thread Peter Eisentraut
Reorganize logical replication worker disconnect code Move the walrcv_disconnect() calls into the before_shmem_exit handler. This makes sure the call is always made even during exit by signal, it saves some duplicate code, and it makes the logic more similar to walreceiver.c. Author: Petr Jelinek

[COMMITTERS] pgsql: psql: Fix display of whether table is part of publication

2017-06-01 Thread Peter Eisentraut
psql: Fix display of whether table is part of publication If a FOR ALL TABLES publication was present, \d of a table would claim for each table that it was part of the publication, even for tables that are ignored for this purpose, such as system tables and unlogged tables. Fix the query by using

[COMMITTERS] pgsql: Fix typo

2017-06-01 Thread Alvaro Herrera
Fix typo Reported by: Tim Goodaire Discussion: https://postgr.es/m/20170601182230.1487.26...@wrigleys.postgresql.org Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/f112f175a464697dd7ff5280de40dcc08d75f995 Modified Files -- doc/src/sgml/config.sgml | 2

[COMMITTERS] pgsql: Make ALTER SEQUENCE, including RESTART, fully transactional.

2017-06-01 Thread Andres Freund
Make ALTER SEQUENCE, including RESTART, fully transactional. Previously the changes to the "data" part of the sequence, i.e. the one containing the current value, were not transactional, whereas the definition, including minimum and maximum value were. That leads to odd behaviour if a schema chan

[COMMITTERS] pgsql: Modify sequence catalog tuple before invoking post alter hook.

2017-06-01 Thread Andres Freund
Modify sequence catalog tuple before invoking post alter hook. This seems to have been broken in the commit (1753b1b027035029) that moved the sequence definition into pg_sequence. Author: Andres Freund Discussion: https://postgr.es/m/20170601000716.qxg7c46ukkilj...@alap3.anarazel.de Backpatch: B

[COMMITTERS] pgsql: Always use -fPIC, not -fpic, when building shared libraries with

2017-06-01 Thread Tom Lane
Always use -fPIC, not -fpic, when building shared libraries with gcc. On some platforms, -fpic fails for sufficiently large shared libraries. We've mostly not hit that boundary yet, but there are some extensions such as Citus and pglogical where it's becoming a problem. A bit of research suggests

[COMMITTERS] pgsql: Always use -fPIC, not -fpic, when building shared libraries with

2017-06-01 Thread Tom Lane
Always use -fPIC, not -fpic, when building shared libraries with gcc. On some platforms, -fpic fails for sufficiently large shared libraries. We've mostly not hit that boundary yet, but there are some extensions such as Citus and pglogical where it's becoming a problem. A bit of research suggests

[COMMITTERS] pgsql: Always use -fPIC, not -fpic, when building shared libraries with

2017-06-01 Thread Tom Lane
Always use -fPIC, not -fpic, when building shared libraries with gcc. On some platforms, -fpic fails for sufficiently large shared libraries. We've mostly not hit that boundary yet, but there are some extensions such as Citus and pglogical where it's becoming a problem. A bit of research suggests

[COMMITTERS] pgsql: Always use -fPIC, not -fpic, when building shared libraries with

2017-06-01 Thread Tom Lane
Always use -fPIC, not -fpic, when building shared libraries with gcc. On some platforms, -fpic fails for sufficiently large shared libraries. We've mostly not hit that boundary yet, but there are some extensions such as Citus and pglogical where it's becoming a problem. A bit of research suggests

[COMMITTERS] pgsql: Always use -fPIC, not -fpic, when building shared libraries with

2017-06-01 Thread Tom Lane
Always use -fPIC, not -fpic, when building shared libraries with gcc. On some platforms, -fpic fails for sufficiently large shared libraries. We've mostly not hit that boundary yet, but there are some extensions such as Citus and pglogical where it's becoming a problem. A bit of research suggests

[COMMITTERS] pgsql: Always use -fPIC, not -fpic, when building shared libraries with

2017-06-01 Thread Tom Lane
Always use -fPIC, not -fpic, when building shared libraries with gcc. On some platforms, -fpic fails for sufficiently large shared libraries. We've mostly not hit that boundary yet, but there are some extensions such as Citus and pglogical where it's becoming a problem. A bit of research suggests