Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
28e9e9a2
Commit
28e9e9a2
authored
Dec 19, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename --accounts-only to --globals-only, polish documentation.
parent
f824d4a3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
268 deletions
+108
-268
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_dumpall.sgml
+97
-257
src/bin/pg_dump/pg_dumpall.sh
src/bin/pg_dump/pg_dumpall.sh
+11
-11
No files found.
doc/src/sgml/ref/pg_dumpall.sgml
View file @
28e9e9a2
This diff is collapsed.
Click to expand it.
src/bin/pg_dump/pg_dumpall.sh
View file @
28e9e9a2
...
...
@@ -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.
8 2000/11/14 18:37:46 tgl
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
9 2000/12/19 22:12:47 petere
Exp $
CMDNAME
=
`
basename
$0
`
...
...
@@ -72,7 +72,7 @@ fi
usage
=
cleanschema
=
account
s_only
=
global
s_only
=
#
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
...
...
@@ -110,8 +110,8 @@ while [ $# -gt 0 ] ; do
cleanschema
=
yes
pgdumpextraopts
=
"
$pgdumpextraopts
-c"
;;
--
account
s-only
)
account
s_only
=
yes
--
global
s-only
)
global
s_only
=
yes
;;
*
)
pgdumpextraopts
=
"
$pgdumpextraopts
$1
"
...
...
@@ -122,16 +122,16 @@ done
if
[
"
$usage
"
]
;
then
echo
"
$CMDNAME
dumps a PostgreSQL database cluster
."
echo
"
$CMDNAME
extracts a PostgreSQL database cluster into an SQL script file
."
echo
echo
"Usage:"
echo
"
$CMDNAME
[ -c ] [ -h
host ] [ -p port ] [ --account
s-only ]"
echo
"
$CMDNAME
[ -c ] [ -h
HOSTNAME ] [ -p PORT ] [ --global
s-only ]"
echo
echo
"Options:"
echo
" -c, --clean
c
lean (drop) schema prior to create"
echo
" -h, --host
<hostname> s
erver host name"
echo
" -p, --port
<port> s
erver port number"
echo
" --
accounts-only only dump users and group
s"
echo
" -c, --clean
C
lean (drop) schema prior to create"
echo
" -h, --host
=HOSTNAME S
erver host name"
echo
" -p, --port
=PORT S
erver port number"
echo
" --
globals-only Only dump global objects, no database
s"
echo
"Any extra options will be passed to pg_dump."
echo
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
...
...
@@ -184,7 +184,7 @@ while read GRONAME GROSYSID GROLIST ; do
done
test
"
$
account
s_only
"
=
yes
&&
exit
0
test
"
$
global
s_only
"
=
yes
&&
exit
0
# For each database, run pg_dump to dump the contents of that database.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment