diff options
Diffstat (limited to 'src/test/regress/output/tablespace.source')
| -rw-r--r-- | src/test/regress/output/tablespace.source | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/test/regress/output/tablespace.source b/src/test/regress/output/tablespace.source index 43044a2bcf..42c4bc628d 100644 --- a/src/test/regress/output/tablespace.source +++ b/src/test/regress/output/tablespace.source @@ -1,17 +1,9 @@ -- create a tablespace we can use CREATE TABLESPACE testspace LOCATION '@testtablespace@'; --- create a schema in the tablespace -CREATE SCHEMA testschema TABLESPACE testspace; --- sanity check -SELECT nspname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_namespace n - where n.nsptablespace = t.oid and n.nspname = 'testschema'; - nspname | spcname -------------+----------- - testschema | testspace -(1 row) - +-- create a schema we can use +CREATE SCHEMA testschema; -- try a table -CREATE TABLE testschema.foo (i int); +CREATE TABLE testschema.foo (i int) TABLESPACE testspace; SELECT relname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_class c where c.reltablespace = t.oid AND c.relname = 'foo'; relname | spcname @@ -22,7 +14,7 @@ SELECT relname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_class c INSERT INTO testschema.foo VALUES(1); INSERT INTO testschema.foo VALUES(2); -- index -CREATE INDEX foo_idx on testschema.foo(i); +CREATE INDEX foo_idx on testschema.foo(i) TABLESPACE testspace; SELECT relname, spcname FROM pg_catalog.pg_tablespace t, pg_catalog.pg_class c where c.reltablespace = t.oid AND c.relname = 'foo_idx'; relname | spcname |
