Fix pg_dump against 9.1/9.2 servers.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 26 Mar 2013 13:43:19 +0000 (15:43 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 26 Mar 2013 13:44:26 +0000 (15:44 +0200)
The parallel pg_dump patch forgot to add relpages column to 9.1/9.2 version
of the getTables() query.

Reported by Bernd Helmle.

src/bin/pg_dump/pg_dump.c

index 771822dab5d4412a8de4eb0bd4406fcbcc162bb1..5ad3aa7ca049488c61f8bb4ae351803de16c1c4a 100644 (file)
@@ -4300,6 +4300,7 @@ getTables(Archive *fout, int *numTables)
                          "c.relfrozenxid, tc.oid AS toid, "
                          "tc.relfrozenxid AS tfrozenxid, "
                          "c.relpersistence, 't'::bool as isscannable, "
+                         "c.relpages, "
                          "CASE WHEN c.reloftype <> 0 THEN c.reloftype::pg_catalog.regtype ELSE NULL END AS reloftype, "
                          "d.refobjid AS owning_tab, "
                          "d.refobjsubid AS owning_col, "