pg_dump/pg_restore now always use SET SESSION AUTHORIZATION, not \connect,
Tom Lane <tgl@sss.pgh.pa.us>
pg_dump/pg_restore now always use SET SESSION AUTHORIZATION, not \connect, to control object ownership. The use-set-session-authorization and no-reconnect switches are obsolete (still accepted on the command line, but they don't do anything). This is a precursor to fixing handling of CREATE SCHEMA, which will be a separate commit.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_dump.sgml | modified | +20 −64 |
| doc/src/sgml/ref/pg_restore.sgml | modified | +18 −31 |
| src/bin/pg_dump/pg_backup_archiver.c | modified | +59 −114 |
| src/bin/pg_dump/pg_backup.h | modified | +2 −7 |
| src/bin/pg_dump/pg_dumpall.c | modified | +2 −3 |
| src/bin/pg_dump/pg_dump.c | modified | +6 −14 |
| src/bin/pg_dump/pg_restore.c | modified | +4 −10 |