@@ -1076,27 +1076,25 @@ ExecForeignTruncate(List *rels,
1076
1076
bool restart_seqs);
1077
1077
</programlisting>
1078
1078
1079
- Truncate a set of foreign tables specified in <literal>rels</literal>.
1080
- This function is called when <xref linkend="sql-truncate"/> is executed
1081
- on foreign tables. <literal>rels</literal> is the list of
1082
- <structname>Relation</structname> data structure that indicates
1083
- a foreign table to truncate.
1079
+ Truncate foreign tables. This function is called when
1080
+ <xref linkend="sql-truncate"/> is executed on a foreign table.
1081
+ <literal>rels</literal> is a list of <structname>Relation</structname>
1082
+ data structures of foreign tables to truncate.
1084
1083
</para>
1085
1084
1086
1085
<para>
1087
- <literal>behavior</literal> defines how foreign tables should
1088
- be truncated, using as possible values <literal>DROP_RESTRICT</literal>,
1089
- which means that <literal>RESTRICT</literal> option is specified,
1090
- and <literal>DROP_CASCADE</literal>, which means that
1091
- <literal>CASCADE</literal> option is specified, in
1092
- <command>TRUNCATE</command> command.
1086
+ <literal>behavior</literal> is either <literal>DROP_RESTRICT</literal>
1087
+ or <literal>DROP_CASCADE</literal> indicating that the
1088
+ <literal>RESTRICT</literal> or <literal>CASCADE</literal> option was
1089
+ requested in the original <command>TRUNCATE</command> command,
1090
+ respectively.
1093
1091
</para>
1094
1092
1095
1093
<para>
1096
- <literal>restart_seqs</literal> is set to <literal>true</literal>
1097
- if <literal>RESTART IDENTITY</literal> option is specified in
1098
- <command>TRUNCATE</command> command. It is <literal>false</literal>
1099
- if <literal>CONTINUE IDENTITY</literal> option is specified .
1094
+ If <literal>restart_seqs</literal> is <literal>true</literal>,
1095
+ the original <command>TRUNCATE</command> command requested the
1096
+ <literal>RESTART IDENTITY</literal> behavior, otherwise the
1097
+ <literal>CONTINUE IDENTITY</literal> behavior was requested .
1100
1098
</para>
1101
1099
1102
1100
<para>
@@ -1109,11 +1107,10 @@ ExecForeignTruncate(List *rels,
1109
1107
</para>
1110
1108
1111
1109
<para>
1112
- <command>TRUNCATE</command> invokes
1113
- <function>ExecForeignTruncate</function> once per foreign server
1114
- that foreign tables to truncate belong to. This means that all foreign
1115
- tables included in <literal>rels</literal> must belong to the same
1116
- server.
1110
+ <function>ExecForeignTruncate</function> is invoked once per
1111
+ foreign server for which foreign tables are to be truncated.
1112
+ This means that all foreign tables included in <literal>rels</literal>
1113
+ must belong to the same server.
1117
1114
</para>
1118
1115
1119
1116
<para>
0 commit comments