Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ced3cf

Browse files
committed
pg_dump needs to use ONLY when selecting data from user tables, in case
they have children. As it stood, -d dump mode was badly broken.
1 parent011f1e3 commit3ced3cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*
2424
* IDENTIFICATION
25-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.200 2001/04/04 06:47:30 pjw Exp $
25+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.201 2001/04/05 02:50:01 tgl Exp $
2626
*
2727
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2828
*
@@ -494,7 +494,8 @@ dumpClasses_dumpData(Archive *fout, char *oid, void *dctxv)
494494
inttuple;
495495
intfield;
496496

497-
appendPQExpBuffer(q,"SELECT * FROM %s",fmtId(classname,force_quotes));
497+
appendPQExpBuffer(q,"SELECT * FROM ONLY %s",
498+
fmtId(classname,force_quotes));
498499
res=PQexec(g_conn,q->data);
499500
if (!res||
500501
PQresultStatus(res)!=PGRES_TUPLES_OK)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp