提交 9c65acc7 编写于 作者: J Jimmy Yih 提交者: Xin Zhang

Fix pg_dumpall to not query for filespace

This should create a dump that will work between 6.0 versions but
still needs ideas on how it would work for going to earlier versions
like 5.x.
上级 4d2b223d
......@@ -1355,13 +1355,12 @@ dumpTablespaces(PGconn *conn)
else
{
res = executeQuery(conn, "SELECT spcname, "
"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, "
"fsname, spcacl, "
"pg_catalog.shobj_description(t.oid, 'pg_tablespace') "
"FROM pg_catalog.pg_tablespace t, "
"pg_catalog.pg_filespace fs "
"WHERE t.spcfsoid = fs.oid AND spcname !~ '^pg_' "
"ORDER BY 1");
"pg_catalog.pg_get_userbyid(spcowner) AS spcowner, "
"spclocation, spcacl, "
"pg_catalog.shobj_description(t.oid, 'pg_tablespace') "
"FROM pg_catalog.pg_tablespace t "
"WHERE spcname !~ '^pg_' "
"ORDER BY 1");
}
if (PQntuples(res) > 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册