@@ -42,6 +42,10 @@ ALTER FOREIGN TABLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceab
42
42
ALTER [ COLUMN ] <replaceable class="PARAMETER">column_name</replaceable> SET ( <replaceable class="PARAMETER">attribute_option</replaceable> = <replaceable class="PARAMETER">value</replaceable> [, ... ] )
43
43
ALTER [ COLUMN ] <replaceable class="PARAMETER">column_name</replaceable> RESET ( <replaceable class="PARAMETER">attribute_option</replaceable> [, ... ] )
44
44
ALTER [ COLUMN ] <replaceable class="PARAMETER">column_name</replaceable> OPTIONS ( [ ADD | SET | DROP ] <replaceable class="PARAMETER">option</replaceable> ['<replaceable class="PARAMETER">value</replaceable>'] [, ... ])
45
+ DISABLE TRIGGER [ <replaceable class="PARAMETER">trigger_name</replaceable> | ALL | USER ]
46
+ ENABLE TRIGGER [ <replaceable class="PARAMETER">trigger_name</replaceable> | ALL | USER ]
47
+ ENABLE REPLICA TRIGGER <replaceable class="PARAMETER">trigger_name</replaceable>
48
+ ENABLE ALWAYS TRIGGER <replaceable class="PARAMETER">trigger_name</replaceable>
45
49
OWNER TO <replaceable class="PARAMETER">new_owner</replaceable>
46
50
OPTIONS ( [ ADD | SET | DROP ] <replaceable class="PARAMETER">option</replaceable> ['<replaceable class="PARAMETER">value</replaceable>'] [, ... ])
47
51
</synopsis>
@@ -148,6 +152,17 @@ ALTER FOREIGN TABLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceab
148
152
</listitem>
149
153
</varlistentry>
150
154
155
+ <varlistentry>
156
+ <term><literal>DISABLE</literal>/<literal>ENABLE [ REPLICA | ALWAYS ] TRIGGER</literal></term>
157
+ <listitem>
158
+ <para>
159
+ These forms configure the firing of trigger(s) belonging to the foreign
160
+ table. See the similar form of <xref linkend="sql-altertable"> for more
161
+ details.
162
+ </para>
163
+ </listitem>
164
+ </varlistentry>
165
+
151
166
<varlistentry>
152
167
<term><literal>OWNER</literal></term>
153
168
<listitem>
@@ -289,6 +304,37 @@ ALTER FOREIGN TABLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceab
289
304
</listitem>
290
305
</varlistentry>
291
306
307
+ <varlistentry>
308
+ <term><replaceable class="PARAMETER">trigger_name</replaceable></term>
309
+ <listitem>
310
+ <para>
311
+ Name of a single trigger to disable or enable.
312
+ </para>
313
+ </listitem>
314
+ </varlistentry>
315
+
316
+ <varlistentry>
317
+ <term><literal>ALL</literal></term>
318
+ <listitem>
319
+ <para>
320
+ Disable or enable all triggers belonging to the foreign table. (This
321
+ requires superuser privilege if any of the triggers are internally
322
+ generated triggers. The core system does not add such triggers to
323
+ foreign tables, but add-on code could do so.)
324
+ </para>
325
+ </listitem>
326
+ </varlistentry>
327
+
328
+ <varlistentry>
329
+ <term><literal>USER</literal></term>
330
+ <listitem>
331
+ <para>
332
+ Disable or enable all triggers belonging to the foreign table except
333
+ for internally generated triggers.
334
+ </para>
335
+ </listitem>
336
+ </varlistentry>
337
+
292
338
<varlistentry>
293
339
<term><replaceable class="PARAMETER">new_owner</replaceable></term>
294
340
<listitem>
0 commit comments