mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Fix pg_dump against 9.1/9.2 servers.
The parallel pg_dump patch forgot to add relpages column to 9.1/9.2 version of the getTables() query. Reported by Bernd Helmle.
This commit is contained in:
parent
901b89e37b
commit
625b237f79
@ -4300,6 +4300,7 @@ getTables(Archive *fout, int *numTables)
|
|||||||
"c.relfrozenxid, tc.oid AS toid, "
|
"c.relfrozenxid, tc.oid AS toid, "
|
||||||
"tc.relfrozenxid AS tfrozenxid, "
|
"tc.relfrozenxid AS tfrozenxid, "
|
||||||
"c.relpersistence, 't'::bool as isscannable, "
|
"c.relpersistence, 't'::bool as isscannable, "
|
||||||
|
"c.relpages, "
|
||||||
"CASE WHEN c.reloftype <> 0 THEN c.reloftype::pg_catalog.regtype ELSE NULL END AS reloftype, "
|
"CASE WHEN c.reloftype <> 0 THEN c.reloftype::pg_catalog.regtype ELSE NULL END AS reloftype, "
|
||||||
"d.refobjid AS owning_tab, "
|
"d.refobjid AS owning_tab, "
|
||||||
"d.refobjsubid AS owning_col, "
|
"d.refobjsubid AS owning_col, "
|
||||||
|
Loading…
Reference in New Issue
Block a user