diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-02-17 04:19:41 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-02-17 04:19:41 +0000 |
| commit | 50a90fac40db82680ac7ceacf3348f3f08f5343e (patch) | |
| tree | 24d7acc1eae21fad0063ba7c9f5acd0f08c4d7d6 /src/bin/pg_dump | |
| parent | 37ec19a15ce452ee94f32ebc3d6a9a45868e82fd (diff) | |
| download | postgresql-50a90fac40db82680ac7ceacf3348f3f08f5343e.tar.gz | |
Stamp HEAD as 9.0devel, and update various places that were referring to 8.5
(hope I got 'em all). Per discussion, this release will be 9.0 not 8.5.
Diffstat (limited to 'src/bin/pg_dump')
| -rw-r--r-- | src/bin/pg_dump/pg_backup_db.c | 4 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_dump.c | 24 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_dumpall.c | 14 |
3 files changed, 21 insertions, 21 deletions
diff --git a/src/bin/pg_dump/pg_backup_db.c b/src/bin/pg_dump/pg_backup_db.c index 4aa10135bb..53711de119 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 - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.86 2010/02/05 03:09:05 joe Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.87 2010/02/17 04:19:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -704,7 +704,7 @@ void DropBlobIfExists(ArchiveHandle *AH, Oid oid) { /* Call lo_unlink only if exists to avoid not-found error. */ - if (PQserverVersion(AH->connection) >= 80500) + if (PQserverVersion(AH->connection) >= 90000) { ahprintf(AH, "SELECT pg_catalog.lo_unlink(oid) " "FROM pg_catalog.pg_largeobject_metadata " diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 538a518ef5..ace4ffe34b 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -12,7 +12,7 @@ * by PostgreSQL * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.570 2010/02/07 20:48:10 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.571 2010/02/17 04:19:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -604,7 +604,7 @@ main(int argc, char **argv) * If supported, set extra_float_digits so that we can dump float data * exactly (given correctly implemented float I/O code, anyway) */ - if (g_fout->remoteVersion >= 80500) + if (g_fout->remoteVersion >= 90000) do_sql_command(g_conn, "SET extra_float_digits TO 3"); else if (g_fout->remoteVersion >= 70400) do_sql_command(g_conn, "SET extra_float_digits TO 2"); @@ -1952,7 +1952,7 @@ hasBlobs(Archive *AH) selectSourceSchema("pg_catalog"); /* Check for BLOB OIDs */ - if (AH->remoteVersion >= 80500) + if (AH->remoteVersion >= 90000) blobQry = "SELECT oid FROM pg_largeobject_metadata LIMIT 1"; else if (AH->remoteVersion >= 70100) blobQry = "SELECT loid FROM pg_largeobject LIMIT 1"; @@ -1990,7 +1990,7 @@ dumpBlobs(Archive *AH, void *arg) selectSourceSchema("pg_catalog"); /* Cursor to get all BLOB OIDs */ - if (AH->remoteVersion >= 80500) + if (AH->remoteVersion >= 90000) blobQry = "DECLARE bloboid CURSOR FOR SELECT oid FROM pg_largeobject_metadata"; else if (AH->remoteVersion >= 70100) blobQry = "DECLARE bloboid CURSOR FOR SELECT DISTINCT loid FROM pg_largeobject"; @@ -2080,7 +2080,7 @@ dumpBlobComments(Archive *AH, void *arg) selectSourceSchema("pg_catalog"); /* Cursor to get all BLOB comments */ - if (AH->remoteVersion >= 80500) + if (AH->remoteVersion >= 90000) blobQry = "DECLARE blobcmt CURSOR FOR SELECT oid, " "obj_description(oid, 'pg_largeobject'), " "pg_get_userbyid(lomowner), lomacl " @@ -3472,7 +3472,7 @@ getTables(int *numTables) * we cannot correctly identify inherited columns, owned sequences, etc. */ - if (g_fout->remoteVersion >= 80500) + if (g_fout->remoteVersion >= 90000) { /* * Left join to pick up dependency info linking sequences to their @@ -3992,7 +3992,7 @@ getIndexes(TableInfo tblinfo[], int numTables) * assume an index won't have more than one internal dependency. */ resetPQExpBuffer(query); - if (g_fout->remoteVersion >= 80500) + if (g_fout->remoteVersion >= 90000) { appendPQExpBuffer(query, "SELECT t.tableoid, t.oid, " @@ -4622,7 +4622,7 @@ getTriggers(TableInfo tblinfo[], int numTables) selectSourceSchema(tbinfo->dobj.namespace->dobj.name); resetPQExpBuffer(query); - if (g_fout->remoteVersion >= 80500) + if (g_fout->remoteVersion >= 90000) { /* * NB: think not to use pretty=true in pg_get_triggerdef. It @@ -4831,7 +4831,7 @@ getProcLangs(int *numProcLangs) /* Make sure we are in proper schema */ selectSourceSchema("pg_catalog"); - if (g_fout->remoteVersion >= 80500) + if (g_fout->remoteVersion >= 90000) { /* pg_language has a laninline column */ appendPQExpBuffer(query, "SELECT tableoid, oid, " @@ -5154,9 +5154,9 @@ getTableAttrs(TableInfo *tblinfo, int numTables) resetPQExpBuffer(q); - if (g_fout->remoteVersion >= 80500) + if (g_fout->remoteVersion >= 90000) { - /* attoptions is new in 8.5 */ + /* attoptions is new in 9.0 */ appendPQExpBuffer(q, "SELECT a.attnum, a.attname, a.atttypmod, " "a.attstattarget, a.attstorage, t.typstorage, " "a.attnotnull, a.atthasdef, a.attisdropped, " @@ -6048,7 +6048,7 @@ getDefaultACLs(int *numDefaultACLs) int i, ntups; - if (g_fout->remoteVersion < 80500) + if (g_fout->remoteVersion < 90000) { *numDefaultACLs = 0; return NULL; diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index f1d7457431..53a1e25d7a 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.132 2010/02/05 03:09:05 joe Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.133 2010/02/17 04:19:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -507,7 +507,7 @@ main(int argc, char *argv[]) /* Dump role/database settings */ if (!tablespaces_only && !roles_only) { - if (server_version >= 80500) + if (server_version >= 90000) dumpDbRoleConfig(conn); } } @@ -956,7 +956,7 @@ dumpTablespaces(PGconn *conn) * Get all tablespaces except built-in ones (which we assume are named * pg_xxx) */ - if (server_version >= 80500) + if (server_version >= 90000) res = executeQuery(conn, "SELECT spcname, " "pg_catalog.pg_get_userbyid(spcowner) AS spcowner, " "spclocation, spcacl, " @@ -1348,14 +1348,14 @@ dumpDatabaseConfig(PGconn *conn, const char *dbname) { PGresult *res; - if (server_version >= 80500) + if (server_version >= 90000) printfPQExpBuffer(buf, "SELECT setconfig[%d] FROM pg_db_role_setting WHERE " "setrole = 0 AND setdatabase = (SELECT oid FROM pg_database WHERE datname = ", count); else printfPQExpBuffer(buf, "SELECT datconfig[%d] FROM pg_database WHERE datname = ", count); appendStringLiteralConn(buf, dbname, conn); - if (server_version >= 80500) + if (server_version >= 90000) appendPQExpBuffer(buf, ")"); appendPQExpBuffer(buf, ";"); @@ -1394,7 +1394,7 @@ dumpUserConfig(PGconn *conn, const char *username) { PGresult *res; - if (server_version >= 80500) + if (server_version >= 90000) printfPQExpBuffer(buf, "SELECT setconfig[%d] FROM pg_db_role_setting WHERE " "setdatabase = 0 AND setrole = " "(SELECT oid FROM pg_authid WHERE rolname = ", count); @@ -1403,7 +1403,7 @@ dumpUserConfig(PGconn *conn, const char *username) else printfPQExpBuffer(buf, "SELECT useconfig[%d] FROM pg_shadow WHERE usename = ", count); appendStringLiteralConn(buf, username, conn); - if (server_version >= 80500) + if (server_version >= 90000) appendPQExpBuffer(buf, ")"); res = executeQuery(conn, buf->data); |
