-
Notifications
You must be signed in to change notification settings - Fork 427
Commit 31401f3

gpobs
Update ref/create_table.sgml-200602
——row51至52,更新英文内容为:
[ USING <replaceable class="parameter">method</replaceable> ]
[ WITH ( <replaceable class="parameter">storage_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) | WITHOUT OIDS ]
——row138至149,更新中文内容为:
[ USING <replaceable class="parameter">method</replaceable> ]
[ WITH ( <replaceable class="parameter">storage_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) | WITHOUT OIDS ]
——row63至64,更新英文内容为:
[ USING <replaceable class="parameter">method</replaceable> ]
[ WITH ( <replaceable class="parameter">storage_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) | WITHOUT OIDS ]
——row150至151,更新中文内容为:
[ USING <replaceable class="parameter">method</replaceable> ]
[ WITH ( <replaceable class="parameter">storage_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) | WITHOUT OIDS ]
——row75至76,更新英文内容为:
[ USING <replaceable class="parameter">method</replaceable> ]
[ WITH ( <replaceable class="parameter">storage_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) | WITHOUT OIDS ]
——row162至163,更新中文内容为:
[ USING <replaceable class="parameter">method</replaceable> ]
[ WITH ( <replaceable class="parameter">storage_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) | WITHOUT OIDS ]
——row87,增加英文内容为:
GENERATED ALWAYS AS ( <replaceable>generation_expr</replaceable> ) STORED |
——row174,增加中文内容为:
GENERATED ALWAYS AS ( <replaceable>generation_expr</replaceable> ) STORED |
——row92,调整英文内容为:
[ ON DELETE <replaceable class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ] }
——row179,调整中文内容为:
[ ON DELETE <replaceable class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ] }
——row103至104,调整英文内容为:
[ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE <replaceable
class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ] }
——row190至191,调整中文内容为:
[ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE <replaceable
class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ] }
——row109,调整英文内容为:
{ INCLUDING | EXCLUDING } { COMMENTS | CONSTRAINTS | DEFAULTS | GENERATED | IDENTITY | INDEXES | STATISTICS | STORAGE | ALL }
——row196,调整中文内容为
{ INCLUDING | EXCLUDING } { COMMENTS | CONSTRAINTS | DEFAULTS | GENERATED | IDENTITY | INDEXES | STATISTICS | STORAGE | ALL }
——row113至115,调整英文内容为:
IN ( <replaceable class="parameter">partition_bound_expr</replaceable> [, ...] ) |
FROM ( { <replaceable class="parameter">partition_bound_expr</replaceable> | MINVALUE | MAXVALUE } [, ...] )
TO ( { <replaceable class="parameter">partition_bound_expr</replaceable> | MINVALUE | MAXVALUE } [, ...] ) |
——row201至202,调整中午内容为:
IN ( <replaceable class="parameter">partition_bound_expr</replaceable> [, ...] ) |
FROM ( { <replaceable class="parameter">partition_bound_expr</replaceable> | MINVALUE | MAXVALUE } [, ...] )
TO ( { <replaceable class="parameter">partition_bound_expr</replaceable> | MINVALUE | MAXVALUE } [, ...] ) |
——row687,删除英文内容为:
Also, while it's possible to define <literal>PRIMARY KEY</literal>
constraints on partitioned tables, creating foreign keys that
reference a partitioned table is not yet supported.
——row692,删除中文内容为:
此外,虽然可以在分区表上定义<literal>PRIMARY KEY</literal>约束,
但引用分区表来创建外键还不能支持。
——row718,删除英文内容为:
This option is not available for
hash-partitioned tables.
——row724,删除中文内容为:
此选项不适用于哈希分区表。
——row748至754,调整英文内容为:
<replaceable class="parameter">partition_bound_expr</replaceable> is
any variable-free expression (subqueries, window functions, aggregate
functions, and set-returning functions are not allowed). Its data type
must match the data type of the corresponding partition key column.
The expression is evaluated once at table creation time, so it can
even contain volatile expressions such as
<literal><function>CURRENT_TIMESTAMP</function></literal>.
——row758至760,调整中文内容为:
<replaceable class="parameter">partition_bound_expr</replaceable>是任何无变量表达式(不允许子查询、窗口函数、聚合函数和集返回函数)。
它的数据类型必须与相应分区键列的数据类型相匹配。
表达式在表创建时只计算一次,因此它甚至可以包含易失性表达式,如<literal><function>CURRENT_TIMESTAMP</function></literal>。
——row886至895,调整英文和中文内容为:
If <literal>DEFAULT</literal> is specified, the table will be
created as the default partition of the parent table. This option
is not available for hash-partitioned tables. A partition key value
not fitting into any other partition of the given parent will be
routed to the default partition.
</para>
____________________________________________________________________________-->
<para>
如果指定了<literal>DEFAULT</literal>,则表将创建为父表的默认分区。此选项不适用于哈希分区表。
不适合给定父级表的任何其他分区的分区键值将路由到默认分区。
——row901,调整英文内容为:
a new partition is added to it, the default partition must
——row912,调整中文内容为:
必须扫描默认分区以验证它不包含可能属于新分区的任何行。
——row955至971,调整英文和中文内容为:
A partition must have the same column names and types as the partitioned
table to which it belongs. Modifications to the column names or types of
a partitioned table will automatically propagate to all partitions.
<literal>CHECK</literal> constraints will be inherited automatically by
every partition, but an individual partition may specify additional
<literal>CHECK</literal> constraints; additional constraints with the
same name and condition as in the parent will be merged with the parent
constraint. Defaults may be specified separately for each partition.
But note that a partition's default value is not applied when inserting
a tuple through a partitioned table.
</para>
____________________________________________________________________________-->
<para>
分区必须与其所属的分区表的字段名和类型相同。
对分区表字段名或类型的修改,将自动传播到所有分区。
<literal>CHECK</literal>约束将自动被每一个分区继承,但是单独的分区可以指定额外的<literal>CHECK</literal>约束;与父表相同名称和条件的额外约束将被父表约束合并。
可以为每个分区分别指定默认值。但是请注意,在通过分区表插入元组时不会应用分区的默认值。
——row1029,删除英文和中文内容为:
<!--==========================orignal english content==========================
<para>
Default expressions for the copied column definitions will be copied
only if <literal>INCLUDING DEFAULTS</literal> is specified. The
default behavior is to exclude default expressions, resulting in the
copied columns in the new table having null defaults.
Note that copying defaults that call database-modification functions,
such as <function>nextval</function>, may create a functional linkage between
the original and new tables.
</para>
____________________________________________________________________________-->
<para>
只有<literal>INCLUDING DEFAULTS</literal>被指定时,被拷贝的列定义的默认表达式才会被拷贝。默认的行为是排除默认表达式,导致新表中被拷贝过来的列的默认值为空值。注意,如果拷贝的默认值调用了数据库修改函数(如<function>nextval</function>),则可能在原始表和新表之间创建功能联系。
</para>
<!--==========================orignal english content==========================
<para>
Any identity specifications of copied column definitions will only be
copied if <literal>INCLUDING IDENTITY</literal> is specified. A new
sequence is created for each identity column of the new table, separate
from the sequences associated with the old table.
</para>
____________________________________________________________________________-->
<para>
仅在声明了<literal>INCLUDING IDENTITY</literal>的情况下拷贝复制字段定义的标识声明。
为新表的每个标识列创建一个新的序列,与旧表相关的序列区分开。
</para>
<!--==========================orignal english content==========================
<para>
Not-null constraints are always copied to the new table.
<literal>CHECK</literal> constraints will be copied only if
<literal>INCLUDING CONSTRAINTS</literal> is specified.
No distinction is made between column constraints and table
constraints.
</para>
____________________________________________________________________________-->
<para>
非空约束总是会被复制到新表。<literal>CHECK</literal>约束只有在<literal>INCLUDING CONSTRAINTS</literal>被指定时才会被复制。列约束和表约束之间没有区别对待。
</para>
<!--==========================orignal english content==========================
<para>
Extended statistics are copied to the new table if
<literal>INCLUDING STATISTICS</literal> is specified.
</para>
____________________________________________________________________________-->
<para>
Extended statistics are copied to the new table if
<literal>INCLUDING STATISTICS</literal> is specified.
如果指定了<literal>INCLUDING STATISTICS</literal>,那么扩展统计会被复制到新表。
</para>
<!--==========================orignal english content==========================
<para>
Indexes, <literal>PRIMARY KEY</literal>, <literal>UNIQUE</literal>,
and <literal>EXCLUDE</literal> constraints on the original table will be
created on the new table only if <literal>INCLUDING INDEXES</literal>
is specified. Names for the new indexes and constraints are
chosen according to the default rules, regardless of how the originals
were named. (This behavior avoids possible duplicate-name failures for
the new indexes.)
</para>
____________________________________________________________________________-->
<para>
只有<literal>INCLUDING INDEXES</literal>被指定时,原始表上的索引、<literal>PRIMARY KEY</literal>、<literal>UNIQUE</literal>以及<literal>EXCLUDE</literal>约束将被创建在新表上。新索引和约束的名称将根据默认规则选定,而不管原始的名称如何(这种行为可以避免新索引重名导致的失败)。
</para>
<!--==========================orignal english content==========================
<para>
<literal>STORAGE</literal> settings for the copied column definitions will be
copied only if <literal>INCLUDING STORAGE</literal> is specified. The
default behavior is to exclude <literal>STORAGE</literal> settings, resulting
in the copied columns in the new table having type-specific default
settings. For more on <literal>STORAGE</literal> settings, see
<xref linkend="storage-toast"/>.
</para>
____________________________________________________________________________-->
<para>只有<literal>INCLUDING STORAGE</literal>被指定时,复制而来的列定义的<literal>STORAGE</literal>设置才会被复制。默认行为会排除<literal>STORAGE</literal>设置,导致新表中复制而来的列具有与类型相关的默认设置。更多关于<literal>STORAGE</literal>设置的信息,请见<xref linkend="storage-toast"/>。
</para>
<!--==========================orignal english content==========================
<para>
Comments for the copied columns, constraints, and indexes
will be copied only if <literal>INCLUDING COMMENTS</literal>
is specified. The default behavior is to exclude comments, resulting in
the copied columns and constraints in the new table having no comments.
</para>
____________________________________________________________________________-->
<para>
只有<literal>INCLUDING COMMENTS</literal>被指定时,复制而来的列、约束和索引的注释才会被拷贝。默认行为是排除注释,这导致新表中复制而来的列和约束没有注释。
</para>
<!--==========================orignal english content==========================
<para>
<literal>INCLUDING ALL</literal> is an abbreviated form of
<literal>INCLUDING COMMENTS INCLUDING CONSTRAINTS INCLUDING DEFAULTS INCLUDING IDENTITY INCLUDING INDEXES INCLUDING STATISTICS INCLUDING STORAGE</literal>.
</para>
____________________________________________________________________________-->
<para><literal>INCLUDING ALL</literal>是
<literal>INCLUDING COMMENTS INCLUDING CONSTRAINTS INCLUDING DEFAULTS INCLUDING IDENTITY INCLUDING INDEXES INCLUDING STATISTICS INCLUDING STORAGE</literal>.的简写形式。
</para>
——row1032,调整英文内容为:
Also unlike <literal>INHERITS</literal>, columns and
——row1040,调整中文内容为:
同样与<literal>INHERITS</literal>不同,用<literal>LIKE</literal>拷贝的列和约束不会和相似的命名列及约束融合。如果显式指定了相同的名称或者在另一个<literal>LIKE</literal>子句中指定了相同的名称,将会发出一个错误。
——row1042至1256,增加英文和中文内容为:
<!--==========================orignal english content==========================
<para>
The optional <replaceable>like_option</replaceable> clauses specify
which additional properties of the original table to copy. Specifying
<literal>INCLUDING</literal> copies the property, specifying
<literal>EXCLUDING</literal> omits the property.
<literal>EXCLUDING</literal> is the default. If multiple specifications
are made for the same kind of object, the last one is used. The
available options are:
<variablelist>
<varlistentry>
<term><literal>INCLUDING COMMENTS</literal></term>
<listitem>
<para>
Comments for the copied columns, constraints, and indexes will be
copied. The default behavior is to exclude comments, resulting in
the copied columns and constraints in the new table having no
comments.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING CONSTRAINTS</literal></term>
<listitem>
<para>
<literal>CHECK</literal> constraints will be copied. No distinction
is made between column constraints and table constraints. Not-null
constraints are always copied to the new table.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING DEFAULTS</literal></term>
<listitem>
<para>
Default expressions for the copied column definitions will be
copied. Otherwise, default expressions are not copied, resulting in
the copied columns in the new table having null defaults. Note that
copying defaults that call database-modification functions, such as
<function>nextval</function>, may create a functional linkage
between the original and new tables.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING GENERATED</literal></term>
<listitem>
<para>
Any generation expressions of copied column definitions will be
copied. By default, new columns will be regular base columns.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING IDENTITY</literal></term>
<listitem>
<para>
Any identity specifications of copied column definitions will be
copied. A new sequence is created for each identity column of the
new table, separate from the sequences associated with the old
table.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING INDEXES</literal></term>
<listitem>
<para>
Indexes, <literal>PRIMARY KEY</literal>, <literal>UNIQUE</literal>,
and <literal>EXCLUDE</literal> constraints on the original table
will be created on the new table. Names for the new indexes and
constraints are chosen according to the default rules, regardless of
how the originals were named. (This behavior avoids possible
duplicate-name failures for the new indexes.)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING STATISTICS</literal></term>
<listitem>
<para>
Extended statistics are copied to the new table.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING STORAGE</literal></term>
<listitem>
<para>
<literal>STORAGE</literal> settings for the copied column
definitions will be copied. The default behavior is to exclude
<literal>STORAGE</literal> settings, resulting in the copied columns
in the new table having type-specific default settings. For more on
<literal>STORAGE</literal> settings, see <xref
linkend="storage-toast"/>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING ALL</literal></term>
<listitem>
<para>
<literal>INCLUDING ALL</literal> is an abbreviated form selecting
all the available individual options. (It could be useful to write
individual <literal>EXCLUDING</literal> clauses after
<literal>INCLUDING ALL</literal> to select all but some specific
options.)
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
____________________________________________________________________________-->
<para>
可选的<replaceable>like_option</replaceable>子句指定要复制的原始表的附加属性。
指定 <literal>INCLUDING</literal> 复制该属性, 指定 <literal>EXCLUDING</literal> 忽略该属性。<literal>EXCLUDING</literal>为默认值。
如果对同一类型的对象指定了多个规范,则使用最后一个规范。可用的选项包括:
<variablelist>
<varlistentry>
<term><literal>INCLUDING COMMENTS</literal></term>
<listitem>
<para>
复制的列、约束和索引的注释将被复制。默认行为是去除注释,从而导致新表中复制的列和约束没有注释。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING CONSTRAINTS</literal></term>
<listitem>
<para>
<literal>CHECK</literal>约束将被复制。 列约束和表约束之间没有区别。非空约束始终复制到新表。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING DEFAULTS</literal></term>
<listitem>
<para>
复制列定义的默认表达式将被复制。否则,不会复制默认表达式,从而导致新表中复制的列具有空默认值。
注意,复制调用数据库修改函数的默认值,例如<function>nextval</function>,可能在原始表和新表之间创建功能联系。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING GENERATED</literal></term>
<listitem>
<para>
列定义的任何生成表达式将被复制。 默认情况下,新列将是常规基本列。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING IDENTITY</literal></term>
<listitem>
<para>
已复制列定义的任何标识规范都将被复制。为新表的每个标识列创建一个新序列,与与旧表关联的序列分开。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING INDEXES</literal></term>
<listitem>
<para>
原始表上的索引、<literal>PRIMARY KEY</literal>、 <literal>UNIQUE</literal>和 <literal>EXCLUDE</literal>约束将被建立在新表上。
根据默认规则选择新索引和约束的名称,而不考虑原始的命名。(此行为可避免新索引可能出现重复名称失败。)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING STATISTICS</literal></term>
<listitem>
<para>
扩展统计信息将复制到新表。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING STORAGE</literal></term>
<listitem>
<para>
已复制列定义的<literal>STORAGE</literal>设置将被复制。
默认行为是排除<literal>STORAGE</literal>设置,从而导致新表中已复制列具有类型规定的默认设置。
关于<literal>STORAGE</literal>设置的更多信息,参见<xref linkend="storage-toast"/>。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>INCLUDING ALL</literal></term>
<listitem>
<para>
<literal>INCLUDING ALL</literal> 是选择所有可用的单独选项的缩写形式。
(它能被用于在<literal>INCLUDING ALL</literal>之后写单独的<literal>EXCLUDING</literal>子句,以选择部分指定选项之外的所有选项。)
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
——row1366至1367,增加英文内容为:
(see <xref linkend="ddl-constraints-check-constraints"/>)
——row1372,增加中文内容为:
(参见 <xref linkend="ddl-constraints-check-constraints"/>)
——row1412至1415,调整英文内容为:
is any variable-free expression (in particular, cross-references
to other columns in the current table are not allowed). Subqueries
are not allowed either. The data type of the default expression must
match the data type of the column.
——row1419至1420,调整中文内容为:
<literal>DEFAULT</literal>子句为出现在其定义中的列赋予一个默认数据。该值是可以使用变量的表达式(特别是,不允许用对其他列的交叉引用)。子查询也是不允许的。
默认值表达式的数据类型必须匹配列的数据类型。
——row1436至1474,增加英文和中文内容为:
<varlistentry>
<!--==========================orignal english content==========================
<term><literal>GENERATED ALWAYS AS ( <replaceable>generation_expr</replaceable> ) STORED</literal><indexterm><primary>generated column</primary></indexterm></term>
____________________________________________________________________________-->
<term><literal>GENERATED ALWAYS AS ( <replaceable>generation_expr</replaceable> ) STORED</literal><indexterm><primary>generated column</primary></indexterm></term>
<listitem>
<!--==========================orignal english content==========================
<para>
This clause creates the column as a <firstterm>generated
column</firstterm>. The column cannot be written to, and when read the
result of the specified expression will be returned.
</para>
____________________________________________________________________________-->
<para>
此子句将列创建为<firstterm>generated column</firstterm>。 列无法被写入,读取时将返回指定表达式的结果。
</para>
<!--==========================orignal english content==========================
<para>
The keyword <literal>STORED</literal> is required to signify that the
column will be computed on write and will be stored on disk.
</para>
____________________________________________________________________________-->
<para>
关键字<literal>STORED</literal>表示将在写入时计算列并将存储在磁盘上。
</para>
<!--==========================orignal english content==========================
<para>
The generation expression can refer to other columns in the table, but
not other generated columns. Any functions and operators used must be
immutable. References to other tables are not allowed.
</para>
____________________________________________________________________________-->
<para>
生成表达式可以引用表中的其他列,但不能引用其他生成的列。使用的任何函数和运算符都必须是不可改变的。不允许引用其他表。
</para>
</listitem>
</varlistentry>
——row1774至1776,调整英文和中文内容为:
<term><literal>REFERENCES <replaceable class="parameter">reftable</replaceable> [ ( <replaceable class="parameter">refcolumn</replaceable> ) ] [ MATCH <replaceable class="parameter">matchtype</replaceable> ] [ ON DELETE <replaceable class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ]</literal> (column constraint)</term>
____________________________________________________________________________-->
<term><literal>REFERENCES <replaceable class="parameter">reftable</replaceable> [ ( <replaceable class="parameter">refcolumn</replaceable> ) ] [ MATCH <replaceable class="parameter">matchtype</replaceable> ] [ ON DELETE <replaceable class="parameter">referential_action</replaceable> ] [ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ]</literal> (column constraint)</term>
——row1782至1783,调整英文内容为:
[ ON DELETE <replaceable class="parameter">referential_action</replaceable> ]
[ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ]</literal>
——row1789至1790,调整中文内容为:
[ ON DELETE <replaceable class="parameter">referential_action</replaceable> ]
[ ON UPDATE <replaceable class="parameter">referential_action</replaceable> ]</literal>
——row1809,删除英文内容为:
Also note that while it is possible to
define a foreign key on a partitioned table, it is not possible to
declare a foreign key that references a partitioned table.
——row1818,删除中文内容为:
此外请注意,虽然可以在分区表上定义外键,但不能够声明引用分区表的外键。
——row2046至2067,增加英文和中文内容为:
<varlistentry id="sql-createtable-method">
<!--==========================orignal english content==========================
<term><literal>USING <replaceable class="parameter">method</replaceable></literal></term>
____________________________________________________________________________-->
<term><literal>USING <replaceable class="parameter">method</replaceable></literal></term>
<listitem>
<!--==========================orignal english content==========================
<para>
This optional clause specifies the table access method to use to store
the contents for the new table; the method needs be an access method of
type <literal>TABLE</literal>. See <xref linkend="tableam"/> for more
information. If this option is not specified, the default table access
method is chosen for the new table. See <xref
linkend="guc-default-table-access-method"/> for more information.
</para>
____________________________________________________________________________-->
<para>
此可选子句指定用于存储新表内容的表访问方法;该方法需要的是类型<literal>TABLE</literal>的访问方法。详见 <xref linkend="tableam"/> 。
如果未指定此选项,则为新表选择默认表访问方法。详见<xref linkend="guc-default-table-access-method"/>。
</para>
</listitem>
</varlistentry>
——row2080至2083,调整英文内容为:
information. For backward-compatibility the <literal>WITH</literal>
clause for a table can also include <literal>OIDS=FALSE</literal> to
specify that rows of the new table should not contain OIDs (object
identifiers), <literal>OIDS=TRUE</literal> is not supported anymore.
——row2087至2088,调整中文内容为:
这个子句为一个表或索引指定可选的存储参数,详见<xref linkend="sql-createtable-storage-parameters" endterm="sql-createtable-storage-parameters-title"/> 。
为了向后兼容性,表的<literal>WITH</literal>子句还可以包括<literal>OIDS=FALSE</literal>以便指定新表的行不应包含 OIDs (对象标识符),<literal>OIDS=TRUE</literal>不再受支持。
——row2092,删除英文和中文内容为:
<!--==========================orignal english content==========================
<term><literal>WITH OIDS</literal></term>
____________________________________________________________________________-->
<term><literal>WITH OIDS</literal></term>
——row2101至2103,调整英文内容为:
This is backward-compatible syntax for declaring a table
<literal>WITHOUT OIDS</literal>, creating a table <literal>WITH
OIDS</literal> is not supported anymore.
——row2107,调整中文内容为:
这是向后兼容的语法,用于声明表<literal>WITHOUT OIDS</literal>,不再支持创建表<literal>WITH OIDS</literal>。
——row2198,调整英文内容为:
<varlistentry id="sql-createtable-tablespace">
——row2210至2214,调整英文内容为:
<xref linkend="guc-temp-tablespaces"/> if the table is temporary. For
partitioned tables, since no storage is required for the table itself,
the tablespace specified overrides <literal>default_tablespace</literal>
as the default tablespace to use for any newly created partitions when no
other tablespace is explicitly specified.
——row2219,调整中文内容为:
对于分区表,由于表本身不需要存储,指定表空间将 <literal>default_tablespace</literal>作为默认表空间覆盖,在未显式指定其他表空间时用于任何新创建的分区。
——row2294至2306,调整英文和中文内容为:
<varlistentry id="reloption-fillfactor" xreflabel="fillfactor">
<!--==========================orignal english content==========================
<term><varname>fillfactor</varname> (<type>integer</type>)
<indexterm>
<primary><varname>fillfactor</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><varname>fillfactor</varname> (<type>integer</type>)
<indexterm>
<primary><varname>fillfactor</varname> 存储参数</primary>
</indexterm>
</term>
——row2328至2340,调整英文和中文内容为:
<varlistentry id="reloption-toast-tuple-target" xreflabel="toast_tuple_target">
<!--==========================orignal english content==========================
<term><literal>toast_tuple_target</literal> (<type>integer</type>)
<indexterm>
<primary><varname>toast_tuple_target</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>toast_tuple_target</literal> (<type>integer</type>)
<indexterm>
<primary><varname>toast_tuple_target</varname> 存储参数</primary>
</indexterm>
</term>
——row2372至2384,调整英文和中文内容为:
<varlistentry id="reloption-parallel-workers" xreflabel="parallel_workers">
<!--==========================orignal english content==========================
<term><literal>parallel_workers</literal> (<type>integer</type>)
<indexterm>
<primary><varname>parallel_workers</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>parallel_workers</literal> (<type>integer</type>)
<indexterm>
<primary><varname>parallel_workers</varname> 存储参数</primary>
</indexterm>
</term>
——row2403至2415,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-enabled" xreflabel="autovacuum_enabled">
<!--==========================orignal english content==========================
<term><literal>autovacuum_enabled</literal>, <literal>toast.autovacuum_enabled</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>autovacuum_enabled</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_enabled</literal>, <literal>toast.autovacuum_enabled</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>autovacuum_enabled</varname> 存储参数</primary>
</indexterm>
</term>
——row2440至2522,调整英文和中文内容为:
<varlistentry id="reloption-vacuum-index-cleanup" xreflabel="vacuum_index_cleanup">
<!--==========================orignal english content==========================
<term><literal>vacuum_index_cleanup</literal>, <literal>toast.vacuum_index_cleanup</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>vacuum_index_cleanup</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>vacuum_index_cleanup</literal>, <literal>toast.vacuum_index_cleanup</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>vacuum_index_cleanup</varname> 存储参数</primary>
</indexterm>
</term>
<listitem>
<!--==========================orignal english content==========================
<para>
Enables or disables index cleanup when <command>VACUUM</command> is
run on this table. The default value is <literal>true</literal>.
Disabling index cleanup can speed up <command>VACUUM</command> very
significantly, but may also lead to severely bloated indexes if table
modifications are frequent. The <literal>INDEX_CLEANUP</literal>
parameter of <xref linkend="sql-vacuum"/>, if specified, overrides
the value of this option.
</para>
____________________________________________________________________________-->
<para>
当<command>VACUUM</command>在此表上运行时启用或禁用索引清理。默认值为<literal>true</literal>。
禁用索引清理可以显著加快<command>VACUUM</command>,但如果表修改很频繁,也可能导致索引严重膨胀。
<xref linkend="sql-vacuum"/>的<literal>INDEX_CLEANUP</literal>参数,如果指定,将覆盖此选项的值。
</para>
</listitem>
</varlistentry>
<varlistentry id="reloption-vacuum-truncate" xreflabel="vacuum_truncate">
<!--==========================orignal english content==========================
<term><literal>vacuum_truncate</literal>, <literal>toast.vacuum_truncate</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>vacuum_truncate</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>vacuum_truncate</literal>, <literal>toast.vacuum_truncate</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>vacuum_truncate</varname> 存储参数</primary>
</indexterm>
</term>
<listitem>
<!--==========================orignal english content==========================
<para>
Enables or disables vacuum to try to truncate off any empty pages
at the end of this table. The default value is <literal>true</literal>.
If <literal>true</literal>, <command>VACUUM</command> and
autovacuum do the truncation and the disk space for
the truncated pages is returned to the operating system.
Note that the truncation requires <literal>ACCESS EXCLUSIVE</literal>
lock on the table. The <literal>TRUNCATE</literal> parameter
of <xref linkend="sql-vacuum"/>, if specified, overrides the value
of this option.
</para>
____________________________________________________________________________-->
<para>
启用或禁用vacuum以尝试截断此表末尾的任何空页。默认值为<literal>true</literal>。
如果<literal>true</literal>,<command>VACUUM</command>和autovacuum将执行截断,截断页的磁盘空间将返回到操作系统。
请注意,截断需要 <literal>ACCESS EXCLUSIVE</literal>在表上锁定。<xref linkend="sql-vacuum"/>的<literal>TRUNCATE</literal>参数,如果指定,覆盖此选项的值。
</para>
</listitem>
</varlistentry>
<varlistentry id="reloption-autovacuum-vacuum-threshold" xreflabel="autovacuum_vacuum_threshold">
<!--==========================orignal english content==========================
<term><literal>autovacuum_vacuum_threshold</literal>, <literal>toast.autovacuum_vacuum_threshold</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_threshold</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_vacuum_threshold</literal>, <literal>toast.autovacuum_vacuum_threshold</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_threshold</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2536至2550,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-vauum-scale-factor" xreflabel="autovacuum_vacuum_scale_factor">
<!--==========================orignal english content==========================
<term><literal>autovacuum_vacuum_scale_factor</literal>, <literal>toast.autovacuum_vacuum_scale_factor</literal> (<type>float4</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_scale_factor</varname> </primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_vacuum_scale_factor</literal>, <literal>toast.autovacuum_vacuum_scale_factor</literal> (<type>float4</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_scale_factor</varname> </primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2564至2578,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-analyze-threshold" xreflabel="autovacuum_analyze_threshold">
<!--==========================orignal english content==========================
<term><literal>autovacuum_analyze_threshold</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_analyze_threshold</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_analyze_threshold</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_analyze_threshold</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2592至2606,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-analyze-scale-factor" xreflabel="autovacuum_analyze_scale_factor">
<!--==========================orignal english content==========================
<term><literal>autovacuum_analyze_scale_factor</literal> (<type>float4</type>)
<indexterm>
<primary><varname>autovacuum_analyze_scale_factor</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_analyze_scale_factor</literal> (<type>float4</type>)
<indexterm>
<primary><varname>autovacuum_analyze_scale_factor</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2620至2634,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-vacuum-cost-delay" xreflabel="autovacuum_vacuum_cost_delay">
<!--==========================orignal english content==========================
<term><literal>autovacuum_vacuum_cost_delay</literal>, <literal>toast.autovacuum_vacuum_cost_delay</literal> (<type>floating point</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_cost_delay</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_vacuum_cost_delay</literal>, <literal>toast.autovacuum_vacuum_cost_delay</literal> (<type>floating point</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_cost_delay</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2648至2662,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-vauum-cost-limit" xreflabel="autovacuum_vacuum_cost_limit">
<!--==========================orignal english content==========================
<term><literal>autovacuum_vacuum_cost_limit</literal>, <literal>toast.autovacuum_vacuum_cost_limit</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_cost_limit</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_vacuum_cost_limit</literal>, <literal>toast.autovacuum_vacuum_cost_limit</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_vacuum_cost_limit</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2676至2688,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-freeze-min-age" xreflabel="autovacuum_freeze_min_age">
<!--==========================orignal english content==========================
<term><literal>autovacuum_freeze_min_age</literal>, <literal>toast.autovacuum_freeze_min_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_freeze_min_age</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_freeze_min_age</literal>, <literal>toast.autovacuum_freeze_min_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_freeze_min_age</varname>存储参数</primary>
</indexterm>
</term>
——row2705至2719,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-freeze-max-age" xreflabel="autovacuum_freeze_max_age">
<!--==========================orignal english content==========================
<term><literal>autovacuum_freeze_max_age</literal>, <literal>toast.autovacuum_freeze_max_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_freeze_max_age</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_freeze_max_age</literal>, <literal>toast.autovacuum_freeze_max_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_freeze_max_age</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2735至2747,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-freeze-table-age" xreflabel="autovacuum_freeze_table_age">
<!--==========================orignal english content==========================
<term><literal>autovacuum_freeze_table_age</literal>, <literal>toast.autovacuum_freeze_table_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_freeze_table_age</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_freeze_table_age</literal>, <literal>toast.autovacuum_freeze_table_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_freeze_table_age</varname>存储参数</primary>
</indexterm>
</term>
——row2761至2773,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-multixact-freeze-min-age" xreflabel="autovacuum_multixact_freeze_min_age">
<!--==========================orignal english content==========================
<term><literal>autovacuum_multixact_freeze_min_age</literal>, <literal>toast.autovacuum_multixact_freeze_min_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_multixact_freeze_min_age</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_multixact_freeze_min_age</literal>, <literal>toast.autovacuum_multixact_freeze_min_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_multixact_freeze_min_age</varname> 存储参数</primary>
</indexterm>
</term>
——row2791至2805,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-multixact-freeze-max-age" xreflabel="autovacuum_multixact_freeze_max_age">
<!--==========================orignal english content==========================
<term><literal>autovacuum_multixact_freeze_max_age</literal>, <literal>toast.autovacuum_multixact_freeze_max_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_multixact_freeze_max_age</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_multixact_freeze_max_age</literal>, <literal>toast.autovacuum_multixact_freeze_max_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_multixact_freeze_max_age</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2823至2835,调整英文和中文内容为:
<varlistentry id="reloption-autovacuum-multixact-freeze-table-age" xreflabel="autovacuum_multixact_freeze_table_age">
<!--==========================orignal english content==========================
<term><literal>autovacuum_multixact_freeze_table_age</literal>, <literal>toast.autovacuum_multixact_freeze_table_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_multixact_freeze_table_age</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>autovacuum_multixact_freeze_table_age</literal>, <literal>toast.autovacuum_multixact_freeze_table_age</literal> (<type>integer</type>)
<indexterm>
<primary><varname>autovacuum_multixact_freeze_table_age</varname> 存储参数</primary>
</indexterm>
</term>
——row2849至2863,调整英文和中文内容为:
<varlistentry id="reloption-log-autovacuum-min-duration" xreflabel="log_autovacuum_min_duration">
<!--==========================orignal english content==========================
<term><literal>log_autovacuum_min_duration</literal>, <literal>toast.log_autovacuum_min_duration</literal> (<type>integer</type>)
<indexterm>
<primary><varname>log_autovacuum_min_duration</varname></primary>
<secondary>storage parameter</secondary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>log_autovacuum_min_duration</literal>, <literal>toast.log_autovacuum_min_duration</literal> (<type>integer</type>)
<indexterm>
<primary><varname>log_autovacuum_min_duration</varname></primary>
<secondary>存储参数</secondary>
</indexterm>
</term>
——row2877至2889,调整英文和中文内容为:
<varlistentry id="reloption-user-catalog-table" xreflabel="user_catalog_table">
<!--==========================orignal english content==========================
<term><literal>user_catalog_table</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>user_catalog_table</varname> storage parameter</primary>
</indexterm>
</term>
____________________________________________________________________________-->
<term><literal>user_catalog_table</literal> (<type>boolean</type>)
<indexterm>
<primary><varname>user_catalog_table</varname> 存储参数</primary>
</indexterm>
</term>
——row2915,删除英文和中文内容为:
<!--==========================orignal english content==========================
<para>
Using OIDs in new applications is not recommended: where
possible, using an identity column or other sequence
generator as the table's primary key is preferred. However, if
your application does make use of OIDs to identify specific
rows of a table, it is recommended to create a unique constraint
on the <structfield>oid</structfield> column of that table, to ensure that
OIDs in the table will indeed uniquely identify rows even after
counter wraparound. Avoid assuming that OIDs are unique across
tables; if you need a database-wide unique identifier, use the
combination of <structfield>tableoid</structfield> and row OID for the
purpose.
</para>
____________________________________________________________________________-->
<para>
我们不推荐在新应用中使用 OID:在可能要用到的地方,使用一个标识列或者其他序列生成器作为表的主键会更好。不过,如果你的应用确实需要用到 OID 来标识一个表的特定行,我们推荐在表的<structfield>oid</structfield>列上创建一个唯一约束,来确保表中的 OID 在计数器回卷后能唯一标识行。如果你需要一个数据库范围的唯一标识符,要避免假定 OID 在表之间也是唯一的,应该用<structfield>tableoid</structfield>和行 OID 的组合来实现该目的。
</para>
<tip>
<!--==========================orignal english content==========================
<para>
The use of <literal>OIDS=FALSE</literal> is not recommended
for tables with no primary key, since without either an OID or a
unique data key, it is difficult to identify specific rows.
</para>
____________________________________________________________________________-->
<para>
我们不推荐对没有主键的表使用<literal>OIDS=FALSE</literal>,因为没有 OID 或 唯一数据键,就很难标识特定的行。
</para>
</tip>
——row3706,调整英文内容为:
<title>Non-Deferred Uniqueness Constraints</title>
——row3852,调整英文内容为:
<title>Zero-Column Tables</title>
——row3896至3912,增加英文和中文内容为:
<refsect2>
<!--==========================orignal english content==========================
<title>Generated Columns</title>
____________________________________________________________________________-->
<title>Generated Columns</title>
<!--==========================orignal english content==========================
<para>
The option <literal>STORED</literal> is not standard but is also used by
other SQL implementations. The SQL standard does not specify the storage
of generated columns.
</para>
____________________________________________________________________________-->
<para>
<literal>STORED</literal>选项不是标准,但也用于其他 SQL 实现。 SQL 标准不规定生成列的存储。
</para>
</refsect2>
——row3942,调整英文内容为:
extension; storage parameters are not in the standard.
——row3946,调整中文内容为:
<literal>WITH</literal>子句是一个<productname>PostgreSQL</productname>扩展,存储参数不在标准中。
——row3979至3981,调整英文内容为:
the <quote>self-referencing column</quote>.
<productname>PostgreSQL</productname> does not support self-referencing
columns explicitly.
——row3985,调整中文内容为:
类型化的表实现了 SQL 标准的一个子集。根据标准,一个类型化的表具有与底层组合类型相对应的列,以及其他的<quote>自引用列</quote>。<productname>PostgreSQL</productname>不显式支持自引用列。1 parent 25f32d8 commit 31401f3Copy full SHA for 31401f3
File tree
Expand file treeCollapse file tree
1 file changed
+712
-368
lines changedFilter options
- postgresql/doc/src/sgml/ref
Expand file treeCollapse file tree
1 file changed
+712
-368
lines changed
0 commit comments