I am trying to add partitioning to a table in my database. Here is an example:
CREATE TABLE IF NOT EXISTS myBd.test_table ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL, age INT NOT NULL ) PARTITION BY hash (id); However, I get the following error:
ERROR: cannot specify default tablespace for partitioned relations
I understand that the default tablespace has been changed by the database administrators. After running the command:
SELECT datname, dattablespace FROM pg_database WHERE datname = 'myDb'; I get:
dattablespace = 16000 What can I do to create a partitioned table? I do not have permissions to change the default tablespace.
Thank you!