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

Commit4e94ea9

Browse files
committed
More minor updates and copy-editing.
1 parent246be30 commit4e94ea9

37 files changed

+555
-397
lines changed

‎doc/src/sgml/ref/alter_database.sgml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_database.sgml,v 1.13 2004/07/05 02:34:43 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_database.sgml,v 1.14 2005/01/04 00:39:53 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -25,33 +25,35 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET <replacea
2525

2626
ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RENAME TO <replaceable>newname</replaceable>
2727

28-
ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <replaceable>new_owner</replaceable>
28+
ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <replaceable>newowner</replaceable>
2929
</synopsis>
3030
</refsynopsisdiv>
3131

3232
<refsect1>
3333
<title>Description</title>
3434

3535
<para>
36-
<command>ALTER DATABASE</command>is used to change the attributes
36+
<command>ALTER DATABASE</command>changes the attributes
3737
of a database.
3838
</para>
3939

4040
<para>
41-
The first two forms change the session defaultof a run-time
41+
The first two forms change the session defaultfor a run-time
4242
configuration variable for a <productname>PostgreSQL</productname>
4343
database. Whenever a new session is subsequently started in that
4444
database, the specified value becomes the session default value.
4545
The database-specific default overrides whatever setting is present
4646
in <filename>postgresql.conf</> or has been received from the
4747
<command>postmaster</command> command line. Only the database
4848
owner or a superuser can change the session defaults for a
49-
database.
49+
database. Certain variables cannot be set this way, or can only be
50+
set by a superuser.
5051
</para>
5152

5253
<para>
5354
The third form changes the name of the database. Only the database
54-
owner can rename a database, and only if he has the
55+
owner or a superuser can rename a database; non-superuser owners must
56+
also have the
5557
<literal>CREATEDB</literal> privilege. The current database cannot
5658
be renamed. (Connect to a different database if you need to do
5759
that.)
@@ -71,7 +73,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
7173
<term><replaceable class="PARAMETER">name</replaceable></term>
7274
<listitem>
7375
<para>
74-
The name of the database whosesession defaults are to be altered.
76+
The name of the database whoseattributes are to be altered.
7577
</para>
7678
</listitem>
7779
</varlistentry>
@@ -81,14 +83,13 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
8183
<term><replaceable>value</replaceable></term>
8284
<listitem>
8385
<para>
84-
Setthesession default forthis database ofthe specified
85-
configurationparameter to the given value. If
86+
Setthis database'ssession default for the specified configuration
87+
parameter to the given value. If
8688
<replaceable>value</replaceable> is <literal>DEFAULT</literal>
8789
or, equivalently, <literal>RESET</literal> is used, the
88-
database-specific variable setting is removed and the system-wide
89-
default
90+
database-specific setting is removed, so the system-wide default
9091
setting will be inherited in new sessions. Use <literal>RESET
91-
ALL</literal> to clear all settings.
92+
ALL</literal> to clear alldatabase-specificsettings.
9293
</para>
9394

9495
<para>
@@ -107,16 +108,26 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> OWNER TO <repla
107108
</para>
108109
</listitem>
109110
</varlistentry>
111+
112+
<varlistentry>
113+
<term><replaceable class="parameter">newowner</replaceable></term>
114+
<listitem>
115+
<para>
116+
The new owner of the database.
117+
</para>
118+
</listitem>
119+
</varlistentry>
110120
</variablelist>
111121
</refsect1>
112122

113123
<refsect1>
114124
<title>Notes</title>
115125

116126
<para>
117-
Using <xref linkend="sql-alteruser" endterm="sql-alteruser-title">,
118-
it is also possible to tie a session default to a specific user
119-
rather than a database. User-specific settings override database-specific
127+
It is also possible to tie a session default to a specific user
128+
rather than to a database; see
129+
<xref linkend="sql-alteruser" endterm="sql-alteruser-title">.
130+
User-specific settings override database-specific
120131
ones if there is a conflict.
121132
</para>
122133
</refsect1>
@@ -147,7 +158,6 @@ ALTER DATABASE test SET enable_indexscan TO off;
147158
<title>See Also</title>
148159

149160
<simplelist type="inline">
150-
<member><xref linkend="sql-alteruser" endterm="sql-alteruser-title"></member>
151161
<member><xref linkend="sql-createdatabase" endterm="sql-createdatabase-title"></member>
152162
<member><xref linkend="sql-dropdatabase" endterm="sql-dropdatabase-title"></member>
153163
<member><xref linkend="sql-set" endterm="sql-set-title"></member>

‎doc/src/sgml/ref/alter_group.sgml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.14 2003/11/29 19:51:38 pgsql Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.15 2005/01/04 00:39:53 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -31,11 +31,12 @@ ALTER GROUP <replaceable class="PARAMETER">groupname</replaceable> RENAME TO <re
3131
<title>Description</title>
3232

3333
<para>
34-
<command>ALTER GROUP</command> is used to change a user group. The
35-
first two variants add or remove users from a group. Only database
36-
superusers can use this command. Adding a user to a group does not
37-
create the user. Similarly, removing a user from a group does not
38-
drop the user itself.
34+
<command>ALTER GROUP</command> changes the attributes of a user group.
35+
</para>
36+
37+
<para>
38+
The first two variants add users to a group or remove them from a group.
39+
Only database superusers can use this command.
3940
</para>
4041

4142
<para>
@@ -61,8 +62,9 @@ ALTER GROUP <replaceable class="PARAMETER">groupname</replaceable> RENAME TO <re
6162
<term><replaceable class="PARAMETER">username</replaceable></term>
6263
<listitem>
6364
<para>
64-
Users which are to be added or removed from the group. The users
65-
must exist.
65+
Users that are to be added to or removed from the group. The users
66+
must already exist; <command>ALTER GROUP</> does not create or
67+
drop users.
6668
</para>
6769
</listitem>
6870
</varlistentry>

‎doc/src/sgml/ref/alter_table.sgml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.74 2004/10/22 17:20:04 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.75 2005/01/04 00:39:53 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -129,7 +129,8 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
129129
<xref linkend="sql-analyze" endterm="sql-analyze-title"> operations.
130130
The target can be set in the range 0 to 1000; alternatively, set it
131131
to -1 to revert to using the system default statistics
132-
target. For more information on the use of statistics by the
132+
target (<xref linkend="guc-default-statistics-target">).
133+
For more information on the use of statistics by the
133134
<productname>PostgreSQL</productname> query planner, refer to
134135
<xref linkend="planner-stats">.
135136
</para>
@@ -153,9 +154,9 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
153154
compressible data. <literal>EXTERNAL</literal> is for external,
154155
uncompressed data, and <literal>EXTENDED</literal> is for external,
155156
compressed data. <literal>EXTENDED</literal> is the default for all
156-
data types that support it.The useof <literal>EXTERNAL</literal> will, for example,
157-
make substring operations ona<type>text</type>column faster, at the penalty of
158-
increased storage space.
157+
data types that support it.Useof <literal>EXTERNAL</literal> will
158+
make substring operations on <type>text</type>and <type>bytea</type>
159+
columns faster, at the penalty ofincreased storage space.
159160
</para>
160161
</listitem>
161162
</varlistentry>
@@ -285,15 +286,15 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
285286
<term><replaceable class="PARAMETER">name</replaceable></term>
286287
<listitem>
287288
<para>
288-
The name (possibly schema-qualified) of an existing table to
289-
alter. If <literal>ONLY</> is specified, only that table is
290-
altered. If <literal>ONLY</> is not specified, the table and all
291-
its descendant tables (if any) are updated. <literal>*</> can be
292-
appended to the table name to indicate that descendant tables are
293-
to be altered, but in the current version, this is the default
294-
behavior. (In releases before 7.1, <literal>ONLY</> was the
295-
default behavior. The default can be altered by changing the
296-
configuration parameter <xref linkend="guc-sql-inheritance">.)
289+
The name (possibly schema-qualified) of an existing table to
290+
alter. If <literal>ONLY</> is specified, only that table is
291+
altered. If <literal>ONLY</> is not specified, the table and all
292+
its descendant tables (if any) are updated. <literal>*</> can be
293+
appended to the table name to indicate that descendant tables are
294+
to be altered, but in the current version, this is the default
295+
behavior. (In releases before 7.1, <literal>ONLY</> was the
296+
default behavior. The default can be altered by changing the
297+
configuration parameter <xref linkend="guc-sql-inheritance">.)
297298
</para>
298299
</listitem>
299300
</varlistentry>
@@ -302,7 +303,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
302303
<term><replaceable class="PARAMETER">column</replaceable></term>
303304
<listitem>
304305
<para>
305-
Name of a new or existing column.
306+
Name of a new or existing column.
306307
</para>
307308
</listitem>
308309
</varlistentry>
@@ -311,7 +312,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
311312
<term><replaceable class="PARAMETER">new_column</replaceable></term>
312313
<listitem>
313314
<para>
314-
New name for an existing column.
315+
New name for an existing column.
315316
</para>
316317
</listitem>
317318
</varlistentry>
@@ -320,7 +321,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
320321
<term><replaceable class="PARAMETER">new_name</replaceable></term>
321322
<listitem>
322323
<para>
323-
New name for the table.
324+
New name for the table.
324325
</para>
325326
</listitem>
326327
</varlistentry>
@@ -329,8 +330,8 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
329330
<term><replaceable class="PARAMETER">type</replaceable></term>
330331
<listitem>
331332
<para>
332-
Data type of the new column, or new data type for an existing
333-
column.
333+
Data type of the new column, or new data type for an existing
334+
column.
334335
</para>
335336
</listitem>
336337
</varlistentry>
@@ -339,7 +340,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
339340
<term><replaceable class="PARAMETER">table_constraint</replaceable></term>
340341
<listitem>
341342
<para>
342-
New table constraint for the table.
343+
New table constraint for the table.
343344
</para>
344345
</listitem>
345346
</varlistentry>
@@ -348,7 +349,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
348349
<term><replaceable class="PARAMETER">constraint_name</replaceable></term>
349350
<listitem>
350351
<para>
351-
Name of an existing constraint to drop.
352+
Name of an existing constraint to drop.
352353
</para>
353354
</listitem>
354355
</varlistentry>
@@ -358,7 +359,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
358359
<listitem>
359360
<para>
360361
Automatically drop objects that depend on the dropped column
361-
or constraint (for example, views referencing the column).
362+
or constraint (for example, views referencing the column).
362363
</para>
363364
</listitem>
364365
</varlistentry>
@@ -368,7 +369,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
368369
<listitem>
369370
<para>
370371
Refuse to drop the column or constraint if there are any dependent
371-
objects. This is the default behavior.
372+
objects. This is the default behavior.
372373
</para>
373374
</listitem>
374375
</varlistentry>
@@ -377,7 +378,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
377378
<term><replaceable class="PARAMETER">index_name</replaceable></term>
378379
<listitem>
379380
<para>
380-
The index name on which the table should be marked for clustering.
381+
The index name on which the table should be marked for clustering.
381382
</para>
382383
</listitem>
383384
</varlistentry>
@@ -386,7 +387,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
386387
<term><replaceable class="PARAMETER">new_owner</replaceable></term>
387388
<listitem>
388389
<para>
389-
The user name of the new owner of the table.
390+
The user name of the new owner of the table.
390391
</para>
391392
</listitem>
392393
</varlistentry>
@@ -395,7 +396,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
395396
<term><replaceable class="PARAMETER">tablespace_name</replaceable></term>
396397
<listitem>
397398
<para>
398-
The tablespace name to which the table will be moved.
399+
The tablespace name to which the table will be moved.
399400
</para>
400401
</listitem>
401402
</varlistentry>
@@ -472,7 +473,8 @@ ALTER TABLE table ALTER COLUMN anycol TYPE anytype;
472473
though a <literal>USING</literal> clause is supplied. In such cases,
473474
drop the default with <literal>DROP DEFAULT</>, perform the <literal>ALTER
474475
TYPE</>, and then use <literal>SET DEFAULT</> to add a suitable new
475-
default.
476+
default. Similar considerations apply to indexes and constraints involving
477+
the column.
476478
</para>
477479

478480
<para>
@@ -593,7 +595,7 @@ ALTER TABLE distributors ADD PRIMARY KEY (dist_id);
593595
</para>
594596

595597
<para>
596-
To move a table to a different tablespace:
598+
To move a table to a different tablespace:
597599
<programlisting>
598600
ALTER TABLE distributors SET TABLESPACE fasttablespace;
599601
</programlisting>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp