Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fe2d4c

Browse files
committed
doc: clarify how dropping of extensions affects dependent objs.
Clarify that functions/procedures are dropped when any extension thatdepends on them is dropped.Reported-by: David G. JohnstonDiscussion:https://postgr.es/m/CAKFQuwbPSHMDGkisRUmewopweC1bFvytVqB=a=X4GFg=4ZWxPA@mail.gmail.comBackpatch-through: 13
1 parent47ae694 commit5fe2d4c

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

‎doc/src/sgml/ref/alter_function.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ ALTER FUNCTION <replaceable>name</replaceable> [ ( [ [ <replaceable class="param
160160
<para>
161161
This form marks the function as dependent on the extension, or no longer
162162
dependent on that extension if <literal>NO</literal> is specified.
163-
A function that's marked as dependent on an extension is automatically
164-
dropped when the extension is dropped.
163+
A function that's marked as dependent on an extension is dropped when the
164+
extension is dropped, even if <literal>CASCADE</literal> is not specified.
165+
A function can depend upon multiple extensions, and will be dropped when
166+
any one of those extensions is dropped.
165167
</para>
166168
</listitem>
167169
</varlistentry>

‎doc/src/sgml/ref/alter_procedure.sgml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ ALTER PROCEDURE <replaceable>name</replaceable> [ ( [ [ <replaceable class="para
147147
<term><replaceable class="parameter">extension_name</replaceable></term>
148148
<listitem>
149149
<para>
150-
The name of the extension that the procedure is to depend on.
150+
This form marks the procedure as dependent on the extension, or no longer
151+
dependent on the extension if <literal>NO</literal> is specified.
152+
A procedure that's marked as dependent on an extension is dropped when the
153+
extension is dropped, even if cascade is not specified.
154+
A procedure can depend upon multiple extensions, and will be dropped when
155+
any one of those extensions is dropped.
151156
</para>
152157
</listitem>
153158
</varlistentry>

‎doc/src/sgml/ref/drop_extension.sgml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ DROP EXTENSION [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [
3030

3131
<para>
3232
<command>DROP EXTENSION</command> removes extensions from the database.
33-
Dropping an extension causes its component objects to be dropped as well.
33+
Dropping an extension causes its component objects, and other explicitly
34+
dependent routines (see <xref linkend="sql-alterroutine"/>,
35+
the depends on extension action), to be dropped as well.
3436
</para>
3537

3638
<para>
@@ -77,9 +79,9 @@ DROP EXTENSION [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [
7779
<term><literal>RESTRICT</literal></term>
7880
<listitem>
7981
<para>
80-
Refuse to drop theextension if any objects depend on it (other than
81-
its ownmember objectsand other extensions listed in the same
82-
<command>DROP</command> command). This is the default.
82+
This option prevents thespecified extensions from being dropped
83+
if there exists non-extension-member objectsthat depends on any
84+
the extensions. This is the default.
8385
</para>
8486
</listitem>
8587
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp