Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
b7f4c642
Commit
b7f4c642
authored
24 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Add pg_dumpall --accounts-only option.
parent
cd5dbfb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/ref/pg_dumpall.sgml
+11
-2
11 additions, 2 deletions
doc/src/sgml/ref/pg_dumpall.sgml
src/bin/pg_dump/pg_dumpall.sh
+10
-2
10 additions, 2 deletions
src/bin/pg_dump/pg_dumpall.sh
with
21 additions
and
4 deletions
doc/src/sgml/ref/pg_dumpall.sgml
+
11
−
2
View file @
b7f4c642
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.1
0
2000/1
0
/0
5 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.1
1
2000/1
1
/0
2 21:13:31 petere
Exp $
Postgres documentation
-->
...
...
@@ -23,7 +23,7 @@ Postgres documentation
<date>1999-07-20</date>
</refsynopsisdivinfo>
<synopsis>
pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -a ] [ -d ] [ -D ] [ -O ] [ -s ] [ -u ] [ -v ] [ -x ]
pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -a ] [ -d ] [ -D ] [ -O ] [ -s ] [ -u ] [ -v ] [ -x ]
[ --accounts-only ]
</synopsis>
<refsect2 id="R2-APP-PG-DUMPALL-1">
...
...
@@ -120,6 +120,15 @@ pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replac
</listitem>
</varlistentry>
<varlistentry>
<term>--accounts-only</term>
<listitem>
<para>
Only dump user and group information, nothing else.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
...
...
This diff is collapsed.
Click to expand it.
src/bin/pg_dump/pg_dumpall.sh
+
10
−
2
View file @
b7f4c642
...
...
@@ -6,7 +6,7 @@
# and "pg_group" tables, which belong to the whole installation rather
# than any one individual database.
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
5
2000/1
0/25 10:21
:3
8
p
jw
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
6
2000/1
1/02 21:13
:3
2
p
etere
Exp $
CMDNAME
=
`
basename
$0
`
...
...
@@ -72,6 +72,7 @@ fi
usage
=
cleanschema
=
accounts_only
=
#
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
...
...
@@ -109,6 +110,9 @@ while [ $# -gt 0 ] ; do
cleanschema
=
yes
pgdumpextraopts
=
"
$pgdumpextraopts
-c"
;;
--accounts-only
)
accounts_only
=
yes
;;
*
)
pgdumpextraopts
=
"
$pgdumpextraopts
$1
"
;;
...
...
@@ -121,12 +125,13 @@ if [ "$usage" ] ; then
echo
"
$CMDNAME
dumps a PostgreSQL database cluster."
echo
echo
"Usage:"
echo
"
$CMDNAME
[ -c ] [ -h host ] [ -p port ]"
echo
"
$CMDNAME
[ -c ] [ -h host ] [ -p port
] [ --accounts-only
]"
echo
echo
"Options:"
echo
" -c, --clean clean (drop) schema prior to create"
echo
" -h, --host <hostname> server host name"
echo
" -p, --port <port> server port number"
echo
" --accounts-only only dump users and groups"
echo
"Any extra options will be passed to pg_dump."
echo
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
...
...
@@ -179,6 +184,9 @@ while read GRONAME GROSYSID GROLIST ; do
done
test
"
$accounts_only
"
=
yes
&&
exit
0
# First we dump the template in case there are local extensions.
echo
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment