W dniu 08.02.2018 o 05:51, David Fetter pisze: > On Wed, Feb 07, 2018 at 10:26:50PM -0500, Tom Lane wrote: >> Rafal Pietrak <r.piet...@sm.strop.com.pl> writes: [-------------] > > CREATE TABLE foo(b BOOLEAN, i INTEGER NOT NULL, t TEXT NOT NULL) PARTITION BY > LIST (b); > CREATE TABLE foo_true PARTITION OF foo (PRIMARY KEY(i, t)) FOR VALUES IN > ('true'); > CREATE TABLE bar(foo_i INTEGER NOT NULL, foo_t TEXT NOT NULL, FOREIGN > KEY(foo_i, foo_t) REFERENCES foo_true);
This is exactly my current setup. It creates other problems with manageing my dataset, so I'm looking for other ways to lay down the schema. thenx, -R