@@ -300,14 +300,18 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
300
300
</note>
301
301
302
302
<para>
303
- A partition cannot have columns other than those inherited from the
304
- parent. If the parent is specified <literal>WITH OIDS</literal> then
305
- the partitions must also explicitly specify <literal>WITH OIDS</literal>.
306
- Defaults and constraints can optionally be specified for each of the
307
- inherited columns. One can also specify table constraints in addition
308
- to those inherited from the parent. If a check constraint with the name
309
- matching one of the parent's constraint is specified, it is merged with
310
- the latter, provided the specified condition is same.
303
+ A partition must have the same column names and types as the partitioned
304
+ table to which it belongs. If the parent is specified <literal>WITH
305
+ OIDS</literal> then all partitions must have OIDs; the parent's OID
306
+ column will be inherited by all partitions just like any other column.
307
+ Modifications to the column names or types of a partitioned table, or
308
+ the addition or removal of an OID column, will automatically propagate
309
+ to all partitions. <literal>CHECK</> constraints will be inherited
310
+ automatically by every partition, but an individual partition may specify
311
+ additional <literal>CHECK</> constraints; additional constraints with
312
+ the same name and condition as in the parent will be merged with the
313
+ parent constraint. Defaults may be specified separately for each
314
+ partition.
311
315
</para>
312
316
313
317
<para>
@@ -318,15 +322,11 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
318
322
</para>
319
323
320
324
<para>
321
- A partition must have the same column names and types as the table of
322
- which it is a partition. Therefore, modifications to the column names
323
- or types of the partitioned table will automatically propagate to all
324
- children, as will operations such as TRUNCATE which normally affect a
325
- table and all of its inheritance children. It is also possible to
326
- TRUNCATE a partition individually, just as for an inheritance child.
327
- Note that dropping a partition with <literal>DROP TABLE</literal>
328
- requires taking an <literal>ACCESS EXCLUSIVE</literal> lock on the
329
- parent table.
325
+ Operations such as TRUNCATE which normally affect a table and all of its
326
+ inheritance children will cascade to all partitions, but may also be
327
+ performed on an individual partition. Note that dropping a partition
328
+ with <literal>DROP TABLE</literal> requires taking an <literal>ACCESS
329
+ EXCLUSIVE</literal> lock on the parent table.
330
330
</para>
331
331
</listitem>
332
332
</varlistentry>
0 commit comments