Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
b7f4c642
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b7f4c642
编写于
11月 02, 2000
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add pg_dumpall --accounts-only option.
上级
cd5dbfb1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
4 deletion
+21
-4
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_dumpall.sgml
+11
-2
src/bin/pg_dump/pg_dumpall.sh
src/bin/pg_dump/pg_dumpall.sh
+10
-2
未找到文件。
doc/src/sgml/ref/pg_dumpall.sgml
浏览文件 @
b7f4c642
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.1
0 2000/10/05 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.1
1 2000/11/02 21:13:31 petere
Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -23,7 +23,7 @@ Postgres documentation
...
@@ -23,7 +23,7 @@ Postgres documentation
<date>1999-07-20</date>
<date>1999-07-20</date>
</refsynopsisdivinfo>
</refsynopsisdivinfo>
<synopsis>
<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>
</synopsis>
<refsect2 id="R2-APP-PG-DUMPALL-1">
<refsect2 id="R2-APP-PG-DUMPALL-1">
...
@@ -120,6 +120,15 @@ pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replac
...
@@ -120,6 +120,15 @@ pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replac
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<term>--accounts-only</term>
<listitem>
<para>
Only dump user and group information, nothing else.
</para>
</listitem>
</varlistentry>
</variablelist>
</variablelist>
</para>
</para>
...
...
src/bin/pg_dump/pg_dumpall.sh
浏览文件 @
b7f4c642
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# and "pg_group" tables, which belong to the whole installation rather
# and "pg_group" tables, which belong to the whole installation rather
# than any one individual database.
# than any one individual database.
#
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
5 2000/10/25 10:21:38 pjw
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
6 2000/11/02 21:13:32 petere
Exp $
CMDNAME
=
`
basename
$0
`
CMDNAME
=
`
basename
$0
`
...
@@ -72,6 +72,7 @@ fi
...
@@ -72,6 +72,7 @@ fi
usage
=
usage
=
cleanschema
=
cleanschema
=
accounts_only
=
#
#
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
...
@@ -109,6 +110,9 @@ while [ $# -gt 0 ] ; do
...
@@ -109,6 +110,9 @@ while [ $# -gt 0 ] ; do
cleanschema
=
yes
cleanschema
=
yes
pgdumpextraopts
=
"
$pgdumpextraopts
-c"
pgdumpextraopts
=
"
$pgdumpextraopts
-c"
;;
;;
--accounts-only
)
accounts_only
=
yes
;;
*
)
*
)
pgdumpextraopts
=
"
$pgdumpextraopts
$1
"
pgdumpextraopts
=
"
$pgdumpextraopts
$1
"
;;
;;
...
@@ -121,12 +125,13 @@ if [ "$usage" ] ; then
...
@@ -121,12 +125,13 @@ if [ "$usage" ] ; then
echo
"
$CMDNAME
dumps a PostgreSQL database cluster."
echo
"
$CMDNAME
dumps a PostgreSQL database cluster."
echo
echo
echo
"Usage:"
echo
"Usage:"
echo
"
$CMDNAME
[ -c ] [ -h host ] [ -p port ]"
echo
"
$CMDNAME
[ -c ] [ -h host ] [ -p port ]
[ --accounts-only ]
"
echo
echo
echo
"Options:"
echo
"Options:"
echo
" -c, --clean clean (drop) schema prior to create"
echo
" -c, --clean clean (drop) schema prior to create"
echo
" -h, --host <hostname> server host name"
echo
" -h, --host <hostname> server host name"
echo
" -p, --port <port> server port number"
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
"Any extra options will be passed to pg_dump."
echo
echo
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
...
@@ -179,6 +184,9 @@ while read GRONAME GROSYSID GROLIST ; do
...
@@ -179,6 +184,9 @@ while read GRONAME GROSYSID GROLIST ; do
done
done
test
"
$accounts_only
"
=
yes
&&
exit
0
# First we dump the template in case there are local extensions.
# First we dump the template in case there are local extensions.
echo
echo
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录