@@ -69,7 +69,6 @@ ALTER FOREIGN TABLE [ IF EXISTS ] <replaceable class="parameter">name</replaceab
69
69
ENABLE TRIGGER [ <replaceable class="parameter">trigger_name</replaceable> | ALL | USER ]
70
70
ENABLE REPLICA TRIGGER <replaceable class="parameter">trigger_name</replaceable>
71
71
ENABLE ALWAYS TRIGGER <replaceable class="parameter">trigger_name</replaceable>
72
- SET WITH OIDS
73
72
SET WITHOUT OIDS
74
73
INHERIT <replaceable class="parameter">parent_table</replaceable>
75
74
NO INHERIT <replaceable class="parameter">parent_table</replaceable>
@@ -107,7 +106,6 @@ ALTER FOREIGN TABLE [ IF EXISTS ] <replaceable class="parameter">name</replaceab
107
106
ENABLE TRIGGER [ <replaceable class="parameter">trigger_name</replaceable> | ALL | USER ]
108
107
ENABLE REPLICA TRIGGER <replaceable class="parameter">trigger_name</replaceable>
109
108
ENABLE ALWAYS TRIGGER <replaceable class="parameter">trigger_name</replaceable>
110
- SET WITH OIDS
111
109
SET WITHOUT OIDS
112
110
INHERIT <replaceable class="parameter">parent_table</replaceable>
113
111
NO INHERIT <replaceable class="parameter">parent_table</replaceable>
@@ -284,34 +282,13 @@ ____________________________________________________________________________-->
284
282
</listitem>
285
283
</varlistentry>
286
284
287
- <varlistentry>
288
- <term><literal>SET WITH OIDS</literal></term>
289
- <listitem>
290
- <para>
291
- This form adds an <literal>oid</literal> system column to the
292
- table (see <xref linkend="ddl-system-columns"/>).
293
- It does nothing if the table already has OIDs.
294
- Unless the table's foreign-data wrapper supports OIDs, this column
295
- will simply read as zeroes.
296
- </para>
297
-
298
- <para>
299
- Note that this is not equivalent to <literal>ADD COLUMN oid oid</literal>;
300
- that would add a normal column that happened to be named
301
- <literal>oid</literal>, not a system column.
302
- </para>
303
- </listitem>
304
- </varlistentry>
305
-
306
285
<varlistentry>
307
286
<term><literal>SET WITHOUT OIDS</literal></term>
308
287
<listitem>
309
288
<para>
310
- This form removes the <literal>oid</literal> system column from the
311
- table. This is exactly equivalent to
312
- <literal>DROP COLUMN oid RESTRICT</literal>,
313
- except that it will not complain if there is already no
314
- <literal>oid</literal> column.
289
+ Backward compatibility syntax for removing the <literal>oid</literal>
290
+ system column. As <literal>oid</literal> system columns cannot be added
291
+ anymore, this never has an effect.
315
292
</para>
316
293
</listitem>
317
294
</varlistentry>
@@ -464,7 +441,7 @@ ____________________________________________________________________________-->
464
441
</para>
465
442
</listitem>
466
443
</varlistentry>
467
-
444
+
468
445
<varlistentry>
469
446
<term>
470
447
<literal>SET STORAGE</literal>
@@ -529,32 +506,13 @@ ____________________________________________________________________________-->
529
506
</para>
530
507
</listitem>
531
508
</varlistentry>
532
-
533
- <varlistentry>
534
- <term><literal>SET WITH OIDS</literal></term>
535
- <listitem>
536
- <para>
537
- 这种形式为表增加一个<literal>oid</literal>系统列(见
538
- <xref linkend="ddl-system-columns"/>)。如果该表已经有 OID,则
539
- 这种形式不会做任何事情。除非该表的外部数据包装器支持 OID,这个列
540
- 将被简单地读作零。
541
- </para>
542
-
543
- <para>
544
- 注意这和<literal>ADD COLUMN oid oid</literal>并不等效,后者将增加
545
- 一个刚好名字为<literal>oid</literal>的普通列而不是一个系统列。
546
- </para>
547
- </listitem>
548
- </varlistentry>
549
509
550
510
<varlistentry>
551
511
<term><literal>SET WITHOUT OIDS</literal></term>
552
512
<listitem>
553
513
<para>
554
- 这种形式从表移除<literal>oid</literal>系统列。这正好
555
- 等效于<literal>DROP COLUMN oid RESTRICT</literal>,
556
- 不过如果表上已经没有<literal>oid</literal>时它不会做出
557
- 提示或者报错。
514
+ 向后兼容性语法,表示移除<literal>oid</literal>系统列。
515
+ 由于不能再为外部表添加<literal>oid</literal>系统列,此语句不再产生效用。
558
516
</para>
559
517
</listitem>
560
518
</varlistentry>
@@ -598,7 +556,7 @@ ____________________________________________________________________________-->
598
556
</para>
599
557
</listitem>
600
558
</varlistentry>
601
-
559
+
602
560
<varlistentry>
603
561
<term><literal>RENAME</literal></term>
604
562
<listitem>
@@ -635,7 +593,7 @@ ____________________________________________________________________________-->
635
593
动作都能被整合到一个多修改列表以便能被并行应用。例如,可以在一个
636
594
命令中增加几个列并且/或者修改几个列的类型。
637
595
</para>
638
-
596
+
639
597
<!--==========================orignal english content==========================
640
598
<para>
641
599
If the command is written as <literal>ALTER FOREIGN TABLE IF EXISTS ...</literal>
@@ -774,7 +732,7 @@ ____________________________________________________________________________-->
774
732
</para>
775
733
</listitem>
776
734
</varlistentry>
777
-
735
+
778
736
<varlistentry>
779
737
<!--==========================orignal english content==========================
780
738
<term><replaceable class="parameter">table_constraint</replaceable></term>
@@ -905,7 +863,7 @@ ____________________________________________________________________________-->
905
863
</para>
906
864
</listitem>
907
865
</varlistentry>
908
-
866
+
909
867
<varlistentry>
910
868
<!--==========================orignal english content==========================
911
869
<term><replaceable class="parameter">parent_table</replaceable></term>
@@ -1075,7 +1033,7 @@ ____________________________________________________________________________-->
1075
1033
允许没有列的外部表。
1076
1034
</para>
1077
1035
</refsect1>
1078
-
1036
+
1079
1037
<refsect1>
1080
1038
<!--==========================orignal english content==========================
1081
1039
<title>See Also</title>
0 commit comments