summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane2001-04-05 02:50:01 +0000
committerTom Lane2001-04-05 02:50:01 +0000
commit3ced3cfff98e68a206aeb56ccc7cb1154bdaacb6 (patch)
tree85dbe30a34d330c75c951afc2d6705a826fbedb1 /src
parent011f1e3169298b4782b9002cb1890dffefe535e3 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 3ec4893606e..d4c009e544a 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -22,7 +22,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.200 2001/04/04 06:47:30 pjw Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.201 2001/04/05 02:50:01 tgl Exp $
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
@@ -494,7 +494,8 @@ dumpClasses_dumpData(Archive *fout, char *oid, void *dctxv)
int tuple;
int field;
- appendPQExpBuffer(q, "SELECT * FROM %s", fmtId(classname, force_quotes));
+ appendPQExpBuffer(q, "SELECT * FROM ONLY %s",
+ fmtId(classname, force_quotes));
res = PQexec(g_conn, q->data);
if (!res ||
PQresultStatus(res) != PGRES_TUPLES_OK)