Added check for target tablespace existence

This commit is contained in:
Daniele Varrazzo
2013-04-16 19:14:49 +01:00
parent a6e50515ce
commit 43dfe229c9
3 changed files with 55 additions and 8 deletions

View File

@ -38,7 +38,7 @@ FROM pg_class JOIN pg_tablespace ts ON ts.oid = reltablespace
WHERE relname ~ '^testts1';
-- can move the table together with the indexes
\! pg_repack --dbname=contrib_regression --no-order --table=testts1 --tablespace pg_default --moveidx
\! pg_repack --dbname=contrib_regression --no-order --table=testts1 --tablespace testts --moveidx
SELECT relname, spcname
FROM pg_class JOIN pg_tablespace ts ON ts.oid = reltablespace