diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2002-08-18 09:36:26 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2002-08-18 09:36:26 +0000 |
commit | c828ec88205a232a9789f157d8cf9c3d82f85152 (patch) | |
tree | 86c73da00a74678b10e57b2f5b08817bfa466210 /src/bin/pg_dump/pg_backup_db.c | |
parent | 41298cf8a60ff815b98b9babb341c9c1629c1926 (diff) | |
download | postgresql-c828ec88205a232a9789f157d8cf9c3d82f85152.tar.gz postgresql-c828ec88205a232a9789f157d8cf9c3d82f85152.zip |
Make pg_dump output more portable and more pleasing to look at.
The -n and -N options were removed. Quoting is now smart enough to
supply quotes if and only if necessary.
Numerical types are now printed without quotes, except in cases of
special values such as NaN.
Boolean values printed as true and false.
Most string literals now do not escape whitespace characters (newlines,
etc.) for portability.
SET SESSION AUTHORIZATION argument is a string literal, to follow SQL.
Made commands output by pg_dump use consistent spacing and indentation.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_db.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_db.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_dump/pg_backup_db.c b/src/bin/pg_dump/pg_backup_db.c index 03c382d14d8..9c63e36b01e 100644 --- a/src/bin/pg_dump/pg_backup_db.c +++ b/src/bin/pg_dump/pg_backup_db.c @@ -5,7 +5,7 @@ * Implements the basic DB functions used by the archiver. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.36 2002/08/10 16:57:31 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.37 2002/08/18 09:36:25 petere Exp $ * *------------------------------------------------------------------------- */ @@ -590,9 +590,9 @@ FixupBlobRefs(ArchiveHandle *AH, TocEntry *te) if (te->namespace && strlen(te->namespace) > 0) appendPQExpBuffer(tblName, "%s.", - fmtId(te->namespace, false)); + fmtId(te->namespace)); appendPQExpBuffer(tblName, "%s", - fmtId(te->tag, false)); + fmtId(te->tag)); appendPQExpBuffer(tblQry, "SELECT a.attname FROM " @@ -624,13 +624,13 @@ FixupBlobRefs(ArchiveHandle *AH, TocEntry *te) /* Can't use fmtId twice in one call... */ appendPQExpBuffer(tblQry, "UPDATE %s SET %s = %s.newOid", - tblName->data, fmtId(attr, false), + tblName->data, fmtId(attr), BLOB_XREF_TABLE); appendPQExpBuffer(tblQry, " FROM %s WHERE %s.oldOid = %s.%s", BLOB_XREF_TABLE, BLOB_XREF_TABLE, - tblName->data, fmtId(attr, false)); + tblName->data, fmtId(attr)); ahlog(AH, 10, "SQL: %s\n", tblQry->data); |