This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--partitioning like http://www.postgresql.org/docs/9.3/static/ddl-partitioning.html | |
--create master table | |
CREATE TABLE master_table | |
( | |
id serial, | |
key character varying NOT NULL, | |
value character varying NOT NULL, | |
CONSTRAINT master_table_pkey PRIMARY KEY (id) | |
); | |
--create slave tables with constraint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--partitioning like http://www.postgresql.org/docs/9.3/static/ddl-partitioning.html | |
--create master table | |
CREATE TABLE master_table | |
( | |
id serial, | |
key character varying NOT NULL, | |
value character varying NOT NULL, | |
CONSTRAINT master_table_pkey PRIMARY KEY (id) | |
); | |
--create slave tables with constraint |