@@ -21,7 +21,7 @@ doc/src/sgml/ref/create_table.sgml
21
21
22
22
<refsynopsisdiv>
23
23
<synopsis>
24
- CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name</replaceable> ( [
24
+ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED| CONSTANT ] TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name</replaceable> ( [
25
25
{ <replaceable class="PARAMETER">column_name</replaceable> <replaceable class="PARAMETER">data_type</replaceable> [ COLLATE <replaceable>collation</replaceable> ] [ <replaceable class="PARAMETER">column_constraint</replaceable> [ ... ] ]
26
26
| <replaceable>table_constraint</replaceable>
27
27
| LIKE <replaceable>source_table</replaceable> [ <replaceable>like_option</replaceable> ... ] }
@@ -32,7 +32,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
32
32
[ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ]
33
33
[ TABLESPACE <replaceable class="PARAMETER">tablespace_name</replaceable> ]
34
34
35
- CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name</replaceable>
35
+ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED| CONSTANT ] TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name</replaceable>
36
36
OF <replaceable class="PARAMETER">type_name</replaceable> [ (
37
37
{ <replaceable class="PARAMETER">column_name</replaceable> WITH OPTIONS [ <replaceable class="PARAMETER">column_constraint</replaceable> [ ... ] ]
38
38
| <replaceable>table_constraint</replaceable> }
@@ -187,6 +187,20 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
187
187
</listitem>
188
188
</varlistentry>
189
189
190
+ <varlistentry id="SQL-CREATETABLE-CONSTANT">
191
+ <term><literal>CONSTANT</></term>
192
+ <listitem>
193
+ <para>
194
+ If specified, the table is created as read-only. No data can be modified
195
+ or added to constant tables, and they are not processed by
196
+ <link linkend="autovacuum">autovacuum</link>. Constant tables cannot be
197
+ changed to read-write mode, so there is no much sense to create them as
198
+ constant; use <xref linkend="sql-createtableas"> or
199
+ <xref linkend="sql-altertable"> instead.
200
+ </para>
201
+ </listitem>
202
+ </varlistentry>
203
+
190
204
<varlistentry>
191
205
<term><literal>IF NOT EXISTS</></term>
192
206
<listitem>