mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Make pg_dump dump ACL's by default, print warning on use of -z, and add
new -x option to skip acl dump.
This commit is contained in:
@ -259,7 +259,7 @@ script from v6.0 or everything
|
||||
To dump your fairly recent post-v6.0 database installation, type
|
||||
|
||||
<programlisting>
|
||||
$ pg_dumpall -z > db.out
|
||||
$ pg_dumpall > db.out
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>
|
||||
@ -273,7 +273,7 @@ $ cd
|
||||
$ gunzip -c postgresql-v6.5.tar.gz \
|
||||
| tar xvf - src/bin/pg_dump/pg_dumpall
|
||||
$ chmod a+x src/bin/pg_dump/pg_dumpall
|
||||
$ src/bin/pg_dump/pg_dumpall -z > db.out
|
||||
$ src/bin/pg_dump/pg_dumpall > db.out
|
||||
$ rm -rf src
|
||||
</ProgramListing>
|
||||
</Para>
|
||||
|
@ -22,7 +22,7 @@ pg_dump [ <replaceable class="parameter">dbname</replaceable> ]
|
||||
pg_dump [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
|
||||
[ -t <replaceable class="parameter">table</replaceable> ]
|
||||
[ -f <replaceable class="parameter">outputfile</replaceable> ]
|
||||
[ -a ] [ -c ] [ -d ] [ -D ] [ -n ] [ -N ] [ -o ] [ -s ] [ -u ] [ -v ] [ -z ]
|
||||
[ -a ] [ -c ] [ -d ] [ -D ] [ -n ] [ -N ] [ -o ] [ -s ] [ -u ] [ -v ] [ -x ]
|
||||
[ <replaceable class="parameter">dbname</replaceable> ]
|
||||
</SYNOPSIS>
|
||||
|
||||
@ -190,11 +190,11 @@ pg_dump [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceab
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
-z
|
||||
-x
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Include ACLs (grant/revoke commands) and table ownership information.
|
||||
Prevent dumping of ACLs (grant/revoke commands) and table ownership information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -20,7 +20,7 @@ Extract all <productname>Postgres</productname> databases into a script file
|
||||
<SYNOPSIS>
|
||||
pg_dumpall
|
||||
pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
|
||||
[ -a ] [ -d ] [ -D ] [ -o ] [ -s ] [ -u ] [ -v ] [ -z ]
|
||||
[ -a ] [ -d ] [ -D ] [ -o ] [ -s ] [ -u ] [ -v ] [ -x ]
|
||||
</SYNOPSIS>
|
||||
|
||||
<REFSECT2 ID="R2-APP-PG-DUMPALL-1">
|
||||
@ -125,11 +125,11 @@ pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replac
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
-z
|
||||
-x
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Include ACLs (grant/revoke commands) and table ownership information.
|
||||
Prevent dumping ACLs (grant/revoke commands) and table ownership information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -34,7 +34,7 @@ Description
|
||||
PostgreSQL release without reloading all the data. First,
|
||||
to be safe, back up your data directory. Then, use:
|
||||
<programlisting>
|
||||
% pg_dumpall -s -z >db.out
|
||||
% pg_dumpall -s >db.out
|
||||
</programlisting>
|
||||
to dump out your old database definitions without any
|
||||
data. Stop the postmaster and all backends.
|
||||
|
Reference in New Issue
Block a user