By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
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