Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
f4590995
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,发现更多精彩内容 >>
提交
f4590995
编写于
7月 02, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
The attached patch fixes 2 memory leaks in pg_dump, as well as corrects
a spelling mistake and deletes an antiquated comment. Neil Conway
上级
43b0f2e2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
10 deletion
+14
-10
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+2
-2
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+11
-2
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump.h
+1
-6
未找到文件。
src/bin/pg_dump/pg_backup_archiver.c
浏览文件 @
f4590995
...
...
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.
49 2002/05/29 01:49:57 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.
50 2002/07/02 05:49:51 momjian
Exp $
*
* Modifications - 28-Jun-2000 - pjw@rhyme.com.au
*
...
...
@@ -2371,7 +2371,7 @@ _SortToc(ArchiveHandle *AH, TocSortCompareFn fn)
/* Sort it, but ignore the header entries */
qsort
(
&
(
tea
[
1
]),
AH
->
tocCount
,
sizeof
(
TocEntry
*
),
fn
);
/* Rebuild list: this works bec
ua
se we have headers at each end */
/* Rebuild list: this works bec
au
se we have headers at each end */
for
(
i
=
1
;
i
<=
AH
->
tocCount
;
i
++
)
{
tea
[
i
]
->
next
=
tea
[
i
+
1
];
...
...
src/bin/pg_dump/pg_dump.c
浏览文件 @
f4590995
...
...
@@ -22,7 +22,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.26
7 2002/06/20 20:29:4
1 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.26
8 2002/07/02 05:49:5
1 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -967,10 +967,10 @@ dumpClasses_nodumpData(Archive *fout, char *oid, void *dctxv)
write_msg
(
NULL
,
"SQL command to dump the contents of table
\"
%s
\"
failed: PQendcopy() failed.
\n
"
,
classname
);
write_msg
(
NULL
,
"Error message from server: %s"
,
PQerrorMessage
(
g_conn
));
write_msg
(
NULL
,
"The command was: %s
\n
"
,
q
->
data
);
PQclear
(
res
);
exit_nicely
();
}
PQclear
(
res
);
destroyPQExpBuffer
(
q
);
return
1
;
}
...
...
@@ -4758,6 +4758,15 @@ dumpOneTable(Archive *fout, TableInfo *tbinfo, TableInfo *g_tblinfo)
/* Dump Table Comments */
dumpTableComment
(
fout
,
tbinfo
,
reltypename
,
commentDeps
);
if
(
commentDeps
)
{
for
(
j
=
0
;
(
*
commentDeps
)[
j
]
!=
NULL
;
j
++
)
{
free
((
void
*
)
(
*
commentDeps
)[
j
]);
}
free
(
commentDeps
);
}
destroyPQExpBuffer
(
query
);
destroyPQExpBuffer
(
q
);
destroyPQExpBuffer
(
delq
);
...
...
src/bin/pg_dump/pg_dump.h
浏览文件 @
f4590995
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_dump.h,v 1.8
8 2002/06/20 20:29:41
momjian Exp $
* $Id: pg_dump.h,v 1.8
9 2002/07/02 05:49:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -156,11 +156,6 @@ extern char g_comment_end[10];
extern
char
g_opaque_type
[
10
];
/* name for the opaque type */
/* pg_dump is really two programs in one
one version works with postgres v4r2
and the other works with postgreSQL
the common routines are declared here
*/
/*
* common utility functions
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录