Skip to content

Commit 3ef33de

Browse files
committed
fix ref/alter_extension
1 parent 522adea commit 3ef33de

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

postgresql/doc/src/sgml/ref/alter_extension.sgml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ doc/src/sgml/ref/alter_extension.sgml
33
PostgreSQL documentation
44
-->
55

6-
<refentry id="SQL-ALTEREXTENSION">
6+
<refentry id="sql-alterextension">
77
<!--==========================orignal english content==========================
88
<indexterm zone="sql-alterextension">
99
<primary>ALTER EXTENSION</primary>
@@ -66,6 +66,8 @@ ALTER EXTENSION <replaceable class="parameter">name</replaceable> DROP <replacea
6666
OPERATOR CLASS <replaceable class="parameter">object_name</replaceable> USING <replaceable class="parameter">index_method</replaceable> |
6767
OPERATOR FAMILY <replaceable class="parameter">object_name</replaceable> USING <replaceable class="parameter">index_method</replaceable> |
6868
[ PROCEDURAL ] LANGUAGE <replaceable class="parameter">object_name</replaceable> |
69+
PROCEDURE <replaceable class="parameter">procedure_name</replaceable> [ ( [ [ <replaceable class="parameter">argmode</replaceable> ] [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ] |
70+
ROUTINE <replaceable class="parameter">routine_name</replaceable> [ ( [ [ <replaceable class="parameter">argmode</replaceable> ] [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ] |
6971
SCHEMA <replaceable class="parameter">object_name</replaceable> |
7072
SEQUENCE <replaceable class="parameter">object_name</replaceable> |
7173
SERVER <replaceable class="parameter">object_name</replaceable> |
@@ -108,6 +110,8 @@ ALTER EXTENSION <replaceable class="parameter">name</replaceable> DROP <replacea
108110
OPERATOR CLASS <replaceable class="parameter">object_name</replaceable> USING <replaceable class="parameter">index_method</replaceable> |
109111
OPERATOR FAMILY <replaceable class="parameter">object_name</replaceable> USING <replaceable class="parameter">index_method</replaceable> |
110112
[ PROCEDURAL ] LANGUAGE <replaceable class="parameter">object_name</replaceable> |
113+
PROCEDURE <replaceable class="parameter">procedure_name</replaceable> [ ( [ [ <replaceable class="parameter">argmode</replaceable> ] [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ] |
114+
ROUTINE <replaceable class="parameter">routine_name</replaceable> [ ( [ [ <replaceable class="parameter">argmode</replaceable> ] [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ] |
111115
SCHEMA <replaceable class="parameter">object_name</replaceable> |
112116
SEQUENCE <replaceable class="parameter">object_name</replaceable> |
113117
SERVER <replaceable class="parameter">object_name</replaceable> |
@@ -297,12 +301,14 @@ ____________________________________________________________________________-->
297301
<term><replaceable class="parameter">aggregate_name</replaceable></term>
298302
<term><replaceable class="parameter">function_name</replaceable></term>
299303
<term><replaceable class="parameter">operator_name</replaceable></term>
304+
<term><replaceable class="parameter">procedure_name</replaceable></term>
305+
<term><replaceable class="parameter">routine_name</replaceable></term>
300306
<listitem>
301307
<para>
302308
The name of an object to be added to or removed from the extension.
303309
Names of tables,
304310
aggregates, domains, foreign tables, functions, operators,
305-
operator classes, operator families, sequences, text search objects,
311+
operator classes, operator families, procedures, routines, sequences, text search objects,
306312
types, and views can be schema-qualified.
307313
</para>
308314
</listitem>
@@ -331,15 +337,15 @@ ____________________________________________________________________________-->
331337

332338
<listitem>
333339
<para>
334-
The mode of a function or aggregate
335-
argument: <literal>IN</>, <literal>OUT</>,
336-
<literal>INOUT</>, or <literal>VARIADIC</>.
337-
If omitted, the default is <literal>IN</>.
340+
The mode of a function, procedure, or aggregate
341+
argument: <literal>IN</literal>, <literal>OUT</literal>,
342+
<literal>INOUT</literal>, or <literal>VARIADIC</literal>.
343+
If omitted, the default is <literal>IN</literal>.
338344
Note that <command>ALTER EXTENSION</command> does not actually pay
339-
any attention to <literal>OUT</> arguments, since only the input
345+
any attention to <literal>OUT</literal> arguments, since only the input
340346
arguments are needed to determine the function's identity.
341-
So it is sufficient to list the <literal>IN</>, <literal>INOUT</>,
342-
and <literal>VARIADIC</> arguments.
347+
So it is sufficient to list the <literal>IN</literal>, <literal>INOUT</literal>,
348+
and <literal>VARIADIC</literal> arguments.
343349
</para>
344350
</listitem>
345351
</varlistentry>
@@ -349,7 +355,7 @@ ____________________________________________________________________________-->
349355

350356
<listitem>
351357
<para>
352-
The name of a function or aggregate argument.
358+
The name of a function, procedure, or aggregate argument.
353359
Note that <command>ALTER EXTENSION</command> does not actually pay
354360
any attention to argument names, since only the argument data
355361
types are needed to determine the function's identity.
@@ -362,7 +368,7 @@ ____________________________________________________________________________-->
362368

363369
<listitem>
364370
<para>
365-
The data type of a function or aggregate argument.
371+
The data type of a function, procedure, or aggregate argument.
366372
</para>
367373
</listitem>
368374
</varlistentry>
@@ -447,10 +453,12 @@ ____________________________________________________________________________-->
447453
<term><replaceable class="parameter">aggregate_name</replaceable></term>
448454
<term><replaceable class="parameter">function_name</replaceable></term>
449455
<term><replaceable class="parameter">operator_name</replaceable></term>
456+
<term><replaceable class="parameter">procedure_name</replaceable></term>
457+
<term><replaceable class="parameter">routine_name</replaceable></term>
450458
<listitem>
451459
<para>
452460
要从该扩展增加或者移除的对象的名称。表、聚集、域、外部表、函数、
453-
操作符、操作符类、操作符族、序列、文本搜索对象、类型和视图的名称
461+
操作符、操作符类、操作符族、过程、例程、序列、文本搜索对象、类型和视图的名称
454462
可以被模式限定。
455463
</para>
456464
</listitem>
@@ -479,7 +487,7 @@ ____________________________________________________________________________-->
479487

480488
<listitem>
481489
<para>
482-
一个函数或聚集参数的模式:<literal>IN</literal>、<literal>OUT</literal>、
490+
一个函数、过程或者聚集参数的模式:<literal>IN</literal>、<literal>OUT</literal>、
483491
<literal>INOUT</literal>或者<literal>VARIADIC</literal>。如果被忽略,默认值是
484492
<literal>IN</literal>。注意,<command>ALTER EXTENSION</command>
485493
并不真正关心<literal>OUT</literal>参数,因为决定该函数的身份时只需要输入
@@ -494,7 +502,7 @@ ____________________________________________________________________________-->
494502

495503
<listitem>
496504
<para>
497-
一个函数或者聚集参数的名称。注意,
505+
一个函数、过程或者聚集参数的名称。注意,
498506
<command>ALTER EXTENSION</command>并不真正关心参数名称,因为
499507
决定该函数的身份时只需要参数的数据类型。
500508
</para>
@@ -506,7 +514,7 @@ ____________________________________________________________________________-->
506514

507515
<listitem>
508516
<para>
509-
一个函数或聚集参数的数据类型
517+
一个函数、过程或者或聚集参数的数据类型
510518
</para>
511519
</listitem>
512520
</varlistentry>
@@ -624,7 +632,7 @@ ____________________________________________________________________________-->
624632
</para>
625633
</refsect1>
626634

627-
<refsect1 id="SQL-ALTEREXTENSION-see-also">
635+
<refsect1 id="sql-alterextension-see-also">
628636
<!--==========================orignal english content==========================
629637
<title>See Also</title>
630638
____________________________________________________________________________-->

0 commit comments

Comments
 (0)