summaryrefslogtreecommitdiff
path: root/contrib/pg_upgrade/tablespace.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2012-01-24 21:51:10 -0500
committerBruce Momjian <bruce@momjian.us>2012-01-24 21:51:10 -0500
commitb95aec529014355f4f90c5095993404ff0291b02 (patch)
treef423805dfe6dd1772ac13b732d9380d11873c770 /contrib/pg_upgrade/tablespace.c
parent443b4821f1649bc617c5ce1f6f3ffc65842a8930 (diff)
Fix new SQL tablespace location function usage in pg_upgrade to properly
check cluster version numbers, and fix missing table alias.
Diffstat (limited to 'contrib/pg_upgrade/tablespace.c')
-rw-r--r--contrib/pg_upgrade/tablespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/tablespace.c b/contrib/pg_upgrade/tablespace.c
index 11fd9d091f1..6b61f4bac11 100644
--- a/contrib/pg_upgrade/tablespace.c
+++ b/contrib/pg_upgrade/tablespace.c
@@ -53,7 +53,7 @@ get_tablespace_paths(void)
" spcname != 'pg_global'",
/* 9.2 removed the spclocation column */
(GET_MAJOR_VERSION(old_cluster.major_version) <= 901) ?
- "t.spclocation" : "pg_catalog.pg_tablespace_location(oid) AS spclocation");
+ "spclocation" : "pg_catalog.pg_tablespace_location(oid) AS spclocation");
res = executeQueryOrDie(conn, "%s", query);