From dc0e76ca36b4f7b91c3b83e53012585c5eccbe98 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 13 Jul 2004 03:00:17 +0000 Subject: Change pg_dump to use ALTER OWNER commands instead of SET SESSION AUTHORIZATION commands by default. Move all GRANT and REVOKE commands to the end of the dump to avoid restore failures in several situations. Bring back --use-set-session-authorization option to get previous SET behaviour Christopher Kings-Lyne --- doc/src/sgml/ref/pg_dump.sgml | 10 +++++----- doc/src/sgml/ref/pg_restore.sgml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index b3dd617136b..72ec981fcc5 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -1,5 +1,5 @@ @@ -464,10 +464,10 @@ PostgreSQL documentation - This option is obsolete but still accepted for backwards - compatibility. - pg_dump now always behaves in the - way formerly selected by this option. + Output SQL standard SET SESSION AUTHORIZATION commands instead + of OWNER TO commands. This makes the dump more standards compatible, + but depending on the history of the objects in the dump, may not + restore properly. diff --git a/doc/src/sgml/ref/pg_restore.sgml b/doc/src/sgml/ref/pg_restore.sgml index 8f4c1cd9b92..533bdd9c0b8 100644 --- a/doc/src/sgml/ref/pg_restore.sgml +++ b/doc/src/sgml/ref/pg_restore.sgml @@ -1,4 +1,4 @@ - + @@ -337,10 +337,10 @@ - This option is obsolete but still accepted for backwards - compatibility. - pg_restore now always behaves in the - way formerly selected by this option. + Output SQL standard SET SESSION AUTHORIZATION commands instead + of OWNER TO commands. This makes the dump more standards compatible, + but depending on the history of the objects in the dump, may not + restore properly. -- cgit v1.2.3