Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
edbe00a7
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,发现更多精彩内容 >>
提交
edbe00a7
编写于
7月 04, 2000
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make pgdump_oid a temp table. Rename to pg_dump_oid.
上级
554e56e6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+10
-10
未找到文件。
src/bin/pg_dump/pg_dump.c
浏览文件 @
edbe00a7
...
...
@@ -22,7 +22,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.15
4 2000/07/04 14:25:2
8 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.15
5 2000/07/04 16:57:1
8 momjian Exp $
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
...
...
@@ -3599,20 +3599,20 @@ setMaxOid(Archive *fout)
char
sql
[
1024
];
int
pos
;
res
=
PQexec
(
g_conn
,
"CREATE T
ABLE pg
dump_oid (dummy int4)"
);
res
=
PQexec
(
g_conn
,
"CREATE T
EMP TABLE pg_
dump_oid (dummy int4)"
);
if
(
!
res
||
PQresultStatus
(
res
)
!=
PGRES_COMMAND_OK
)
{
fprintf
(
stderr
,
"Can not create pgdump_oid table. "
fprintf
(
stderr
,
"Can not create pg
_
dump_oid table. "
"Explanation from backend: '%s'.
\n
"
,
PQerrorMessage
(
g_conn
));
exit_nicely
(
g_conn
);
}
PQclear
(
res
);
res
=
PQexec
(
g_conn
,
"INSERT INTO pgdump_oid VALUES (0)"
);
res
=
PQexec
(
g_conn
,
"INSERT INTO pg
_
dump_oid VALUES (0)"
);
if
(
!
res
||
PQresultStatus
(
res
)
!=
PGRES_COMMAND_OK
)
{
fprintf
(
stderr
,
"Can not insert into pgdump_oid table. "
fprintf
(
stderr
,
"Can not insert into pg
_
dump_oid table. "
"Explanation from backend: '%s'.
\n
"
,
PQerrorMessage
(
g_conn
));
exit_nicely
(
g_conn
);
}
...
...
@@ -3623,11 +3623,11 @@ setMaxOid(Archive *fout)
exit_nicely
(
g_conn
);
}
PQclear
(
res
);
res
=
PQexec
(
g_conn
,
"DROP TABLE pgdump_oid;"
);
res
=
PQexec
(
g_conn
,
"DROP TABLE pg
_
dump_oid;"
);
if
(
!
res
||
PQresultStatus
(
res
)
!=
PGRES_COMMAND_OK
)
{
fprintf
(
stderr
,
"Can not drop pgdump_oid table. "
fprintf
(
stderr
,
"Can not drop pg
_
dump_oid table. "
"Explanation from backend: '%s'.
\n
"
,
PQerrorMessage
(
g_conn
));
exit_nicely
(
g_conn
);
}
...
...
@@ -3635,11 +3635,11 @@ setMaxOid(Archive *fout)
if
(
g_verbose
)
fprintf
(
stderr
,
"%s maximum system oid is %u %s
\n
"
,
g_comment_start
,
max_oid
,
g_comment_end
);
pos
=
snprintf
(
sql
,
1024
,
"CREATE T
ABLE pg
dump_oid (dummy int4);
\n
"
);
pos
=
pos
+
snprintf
(
sql
+
pos
,
1024
-
pos
,
"COPY pgdump_oid WITH OIDS FROM stdin;
\n
"
);
pos
=
snprintf
(
sql
,
1024
,
"CREATE T
EMP TABLE pg_
dump_oid (dummy int4);
\n
"
);
pos
=
pos
+
snprintf
(
sql
+
pos
,
1024
-
pos
,
"COPY pg
_
dump_oid WITH OIDS FROM stdin;
\n
"
);
pos
=
pos
+
snprintf
(
sql
+
pos
,
1024
-
pos
,
"%-d
\t
0
\n
"
,
max_oid
);
pos
=
pos
+
snprintf
(
sql
+
pos
,
1024
-
pos
,
"
\\
.
\n
"
);
pos
=
pos
+
snprintf
(
sql
+
pos
,
1024
-
pos
,
"DROP TABLE pgdump_oid;
\n
"
);
pos
=
pos
+
snprintf
(
sql
+
pos
,
1024
-
pos
,
"DROP TABLE pg
_
dump_oid;
\n
"
);
ArchiveEntry
(
fout
,
"0"
,
"Max OID"
,
"<Init>"
,
NULL
,
sql
,
""
,
""
,
NULL
,
NULL
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录