[COMMITTERS] pgsql: Teach on_exit_reset() to discard pending cleanups for dsm.

2014-03-10 Thread Robert Haas
Teach on_exit_reset() to discard pending cleanups for dsm. If a postmaster child invokes fork() and then calls on_exit_reset, that should be sufficient to let it exit() without breaking anything, but dynamic shared memory broke that by not updating on_exit_reset() to discard callbacks registered w

[COMMITTERS] pgsql: Allow logical decoding via the walsender interface.

2014-03-10 Thread Robert Haas
Allow logical decoding via the walsender interface. In order for this to work, walsenders need the optional ability to connect to a database, so the "replication" keyword now allows true or false, for backward-compatibility, and the new value "database" (which causes the "dbname" parameter to be r

[COMMITTERS] pgsql: Allow dynamic shared memory segments to be kept until shutdown.

2014-03-10 Thread Robert Haas
Allow dynamic shared memory segments to be kept until shutdown. Amit Kapila, reviewed by Kyotaro Horiguchi, with some further changes by me. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/8722017bbcbc95e311bbaa6d21cd028e296e5e35 Modified Files -- src/ba

[COMMITTERS] pgsql: Fix tracking of psql script line numbers during \copy from anoth

2014-03-10 Thread Tom Lane
Fix tracking of psql script line numbers during \copy from another place. Commit 08146775acd8bfe0fcc509c71857abb928697171 changed do_copy() to temporarily scribble on pset.cur_cmd_source. That was a mighty ugly bit of code in any case, but in particular it broke handleCopyIn's ability to tell whe

[COMMITTERS] pgsql: Fix tracking of psql script line numbers during \copy from anoth

2014-03-10 Thread Tom Lane
Fix tracking of psql script line numbers during \copy from another place. Commit 08146775acd8bfe0fcc509c71857abb928697171 changed do_copy() to temporarily scribble on pset.cur_cmd_source. That was a mighty ugly bit of code in any case, but in particular it broke handleCopyIn's ability to tell whe

[COMMITTERS] pgsql: Fix tracking of psql script line numbers during \copy from anoth

2014-03-10 Thread Tom Lane
Fix tracking of psql script line numbers during \copy from another place. Commit 08146775acd8bfe0fcc509c71857abb928697171 changed do_copy() to temporarily scribble on pset.cur_cmd_source. That was a mighty ugly bit of code in any case, but in particular it broke handleCopyIn's ability to tell whe