diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-07-13 03:00:17 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-07-13 03:00:17 +0000 |
| commit | dc0e76ca36b4f7b91c3b83e53012585c5eccbe98 (patch) | |
| tree | b4f83c3908358ae84eacdcce38786812bfcffef7 /src/bin/pg_dump/pg_backup.h | |
| parent | e419c84c56a70d62ec267084ecf814bf132d0528 (diff) | |
| download | postgresql-dc0e76ca36b4f7b91c3b83e53012585c5eccbe98.tar.gz | |
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
Diffstat (limited to 'src/bin/pg_dump/pg_backup.h')
| -rw-r--r-- | src/bin/pg_dump/pg_backup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup.h b/src/bin/pg_dump/pg_backup.h index 317646252c..4957ea9a14 100644 --- a/src/bin/pg_dump/pg_backup.h +++ b/src/bin/pg_dump/pg_backup.h @@ -15,7 +15,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.30 2004/04/22 02:39:09 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.31 2004/07/13 03:00:17 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -73,6 +73,7 @@ typedef struct _restoreOptions int noOwner; /* Don't try to match original object owner */ int disable_triggers; /* disable triggers during * data-only restore */ + int use_setsessauth; /* Use SET SESSION AUTHORIZATION commands instead of OWNER TO */ char *superuser; /* Username to use as superuser */ int dataOnly; int dropSchema; |
