By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
COPY 1
CREATE TABLESPACE
BEGIN
CREATE SCHEMA
SET
CREATE TABLE
CREATE INDEX
COMMIT
| schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers | rowsecurity |
|---|---|---|---|---|---|---|---|
| company2 | test | postgres | null | t | f | f | f |
SELECT 1
DO
| schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers | rowsecurity |
|---|---|---|---|---|---|---|---|
| company2 | test | postgres | new_tablespace | t | f | f | f |
SELECT 1