 ( logdate &gt;= DATE '2008-02-01' AND logdate &lt; DATE '2008-03-01' );

\copy measurement_y2008m02 from 'measurement_y2008m02'
-- possibly some other data preparation work

ALTER TABLE measurement ATTACH PARTITION measurement_y2008m02
    FOR VALUES FROM ('2008-02-01') TO ('2008-03-01' );
</pre><p>
    </p><p>
     Before running the <code class="command">ATTACH PARTITION</code> command, it is
     recommended to create a <code class="literal">CHECK</code> constraint on the table to
     be attached that 