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

Commit5fe241c

Browse files
committed
Corrections to ALTER FOREIGN TABLE documentation.
Shigeru Hanada, with a minor grammar correction.
1 parent47ebcec commit5fe241c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

‎doc/src/sgml/ref/alter_foreign_table.sgml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ALTER FOREIGN TABLE <replaceable class="PARAMETER">name</replaceable>
3232

3333
<phrase>where <replaceable class="PARAMETER">action</replaceable> is one of:</phrase>
3434

35-
ADD [ COLUMN ] <replaceable class="PARAMETER">column</replaceable> <replaceable class="PARAMETER">type</replaceable>
35+
ADD [ COLUMN ] <replaceable class="PARAMETER">column</replaceable> <replaceable class="PARAMETER">type</replaceable> [ NULL | NOT NULL ]
3636
DROP [ COLUMN ] [ IF EXISTS ] <replaceable class="PARAMETER">column</replaceable> [ RESTRICT | CASCADE ]
3737
ALTER [ COLUMN ] <replaceable class="PARAMETER">column</replaceable> [ SET DATA ] TYPE <replaceable class="PARAMETER">type</replaceable>
3838
ALTER [ COLUMN ] <replaceable class="PARAMETER">column</replaceable> { SET | DROP } NOT NULL
@@ -125,7 +125,7 @@ ALTER FOREIGN TABLE <replaceable class="PARAMETER">name</replaceable>
125125
<term><literal>OPTIONS ( [ ADD | SET | DROP ] <replaceable class="PARAMETER">option</replaceable> ['<replaceable class="PARAMETER">value</replaceable>'] [, ... ] )</literal></term>
126126
<listitem>
127127
<para>
128-
Change options for the foreign table or the column of the foreign table.
128+
Change options for the foreign table.
129129
<literal>ADD</>, <literal>SET</>, and <literal>DROP</>
130130
specify the action to be performed. <literal>ADD</> is assumed
131131
if no operation is explicitly specified. Option names must be
@@ -150,8 +150,6 @@ ALTER FOREIGN TABLE <replaceable class="PARAMETER">name</replaceable>
150150
You must own the table to use <command>ALTER FOREIGN TABLE</>.
151151
To change the schema of a foreign table, you must also have
152152
<literal>CREATE</literal> privilege on the new schema.
153-
To add the table as a new child of a parent table, you must own the
154-
parent table as well.
155153
To alter the owner, you must also be a direct or indirect member of the new
156154
owning role, and that role must have <literal>CREATE</literal> privilege on
157155
the table's schema. (These restrictions enforce that altering the owner
@@ -260,12 +258,11 @@ ALTER FOREIGN TABLE <replaceable class="PARAMETER">name</replaceable>
260258
</para>
261259

262260
<para>
263-
Consistency with the foreign server is not checked when a column is
264-
added or removed with <literal>ADD COLUMN</literal> or
265-
<literal>DROP COLUMN</literal>, a system <literal>oid</> column is added
266-
or removed, a <literal>CHECK</> or <literal>NOT NULL</> constraint is
267-
added, or column type is changed with <literal>SET DATA TYPE</>. It is the
268-
user's responsibility to ensure that the table definition matches the
261+
Consistency with the foreign server is not checked when a column is added
262+
or removed with <literal>ADD COLUMN</literal> or
263+
<literal>DROP COLUMN</literal>, a <literal>NOT NULL</> constraint is
264+
added, or a column type is changed with <literal>SET DATA TYPE</>. It is
265+
the user's responsibility to ensure that the table definition matches the
269266
remote side.
270267
</para>
271268

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp