BEGIN;
CREATE TABLE parent (
	id	int primary key
) PARTITION BY RANGE (id);
CREATE TABLE parent_0 PARTITION OF parent
	FOR VALUES FROM (0) TO (100);

CREATE TABLE children (
	id	int primary key references parent(id)
) PARTITION BY RANGE (id);
CREATE TABLE children_0 PARTITION OF children
	FOR VALUES FROM (0) TO (100);

DROP TABLE children_0;
DROP TABLE parent_0;

COMMIT;
