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

Commit52f436b

Browse files
committed
Improve documentation about the relationship of extensions and schemas.
There's been some confusion expressed about this point, so clarify.Extended version of a patch by David Wheeler.
1 parente3f719c commit52f436b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎doc/src/sgml/extend.sgml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@
359359
extension.) Also notice that while a table can be a member of an
360360
extension, its subsidiary objects such as indexes are not directly
361361
considered members of the extension.
362+
Another important point is that schemas can belong to extensions, but not
363+
vice versa: an extension as such has an unqualified name and does not
364+
exist <quote>within</> any schema. The extension's member objects,
365+
however, will belong to schemas whenever appropriate for their object
366+
types. It may or may not be appropriate for an extension to own the
367+
schema(s) its member objects are within.
362368
</para>
363369

364370
<sect2>

‎doc/src/sgml/ref/create_extension.sgml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ CREATE EXTENSION [ IF NOT EXISTS ] <replaceable class="parameter">extension_name
9494
If not specified, and the extension's control file does not specify a
9595
schema either, the current default object creation schema is used.
9696
</para>
97+
<para>
98+
Remember that the extension itself is not considered to be within any
99+
schema: extensions have unqualified names that must be unique
100+
database-wide. But objects belonging to the extension can be within
101+
schemas.
102+
</para>
97103
</listitem>
98104
</varlistentry>
99105

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp