Skip to content

Using the create_parent function #654

Answered by keithf4
christiansalako asked this question in Q&A
Discussion options

You must be logged in to vote

You're missing the p_type parameter. Any function parameter without a default value must be given.

github654=# CREATE SCHEMA partman_schema
CREATE EXTENSION pg_partman SCHEMA partman_schema
github654-# ^C
github654=# CREATE SCHEMA partman_schema;
CREATE SCHEMA
github654=# CREATE EXTENSION pg_partman SCHEMA partman_schema;
CREATE EXTENSION
github654=# CREATE TABLE partman_schema.sessions ( id bigint NOT NULL, device character varying, finished_at timestamp(6) without time zone, created_at timestamp(6) without time zone NOT NULL ) PARTITION BY RANGE (created_at);
CREATE TABLE
github654=# CREATE TABLE partman_schema.sessions_template (LIKE partman_schema.sessions)
github654-# ;
CREATE TABLE
…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@christiansalako
Comment options

Comment options

You must be logged in to vote
1 reply
@christiansalako
Comment options

Comment options

You must be logged in to vote
1 reply
@christiansalako
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by christiansalako
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants