Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bda5750a
Commit
bda5750a
authored
Oct 03, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some editorial improvements for recently-added ALTER SEQUENCE/VIEW
documentation. Heikki and Tom
parent
b3ab9b45
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
27 deletions
+39
-27
doc/src/sgml/ref/alter_sequence.sgml
doc/src/sgml/ref/alter_sequence.sgml
+23
-24
doc/src/sgml/ref/alter_view.sgml
doc/src/sgml/ref/alter_view.sgml
+16
-3
No files found.
doc/src/sgml/ref/alter_sequence.sgml
View file @
bda5750a
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_sequence.sgml,v 1.1
7 2007/07/03 01:30:35 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_sequence.sgml,v 1.1
8 2007/10/03 16:48:43 tgl
Exp $
PostgreSQL documentation
-->
...
...
@@ -28,8 +28,8 @@ ALTER SEQUENCE <replaceable class="parameter">name</replaceable> [ INCREMENT [ B
[ MINVALUE <replaceable class="parameter">minvalue</replaceable> | NO MINVALUE ] [ MAXVALUE <replaceable class="parameter">maxvalue</replaceable> | NO MAXVALUE ]
[ RESTART [ WITH ] <replaceable class="parameter">start</replaceable> ] [ CACHE <replaceable class="parameter">cache</replaceable> ] [ [ NO ] CYCLE ]
[ OWNED BY { <replaceable class="parameter">table</replaceable>.<replaceable class="parameter">column</replaceable> | NONE } ]
ALTER SEQUENCE <replaceable class="parameter">name</replaceable> SET SCHEMA <replaceable class="parameter">new_schema</replaceable>
ALTER SEQUENCE <replaceable class="parameter">name</replaceable> RENAME TO <replaceable class="parameter">new_name</replaceable>
ALTER SEQUENCE <replaceable class="parameter">name</replaceable> SET SCHEMA <replaceable class="parameter">new_schema</replaceable>
</synopsis>
</refsynopsisdiv>
...
...
@@ -184,19 +184,19 @@ ALTER SEQUENCE <replaceable class="parameter">name</replaceable> RENAME TO <repl
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">new_
schema
</replaceable></term>
<term><replaceable class="parameter">new_
name
</replaceable></term>
<listitem>
<para>
The new
schema
for the sequence.
The new
name
for the sequence.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">new_
name
</replaceable></term>
<term><replaceable class="parameter">new_
schema
</replaceable></term>
<listitem>
<para>
The new
name
for the sequence.
The new
schema
for the sequence.
</para>
</listitem>
</varlistentry>
...
...
@@ -205,17 +205,6 @@ ALTER SEQUENCE <replaceable class="parameter">name</replaceable> RENAME TO <repl
</para>
</refsect1>
<refsect1>
<title>Examples</title>
<para>
Restart a sequence called <literal>serial</literal>, at 105:
<programlisting>
ALTER SEQUENCE serial RESTART WITH 105;
</programlisting>
</para>
</refsect1>
<refsect1>
<title>Notes</title>
...
...
@@ -224,8 +213,8 @@ ALTER SEQUENCE serial RESTART WITH 105;
same sequence, <command>ALTER SEQUENCE</command>'s effects on the sequence
generation parameters are never rolled back;
those changes take effect immediately and are not reversible. However,
the <literal>OWNED BY</>
and <literal>SET SCHEMA</> clauses are ordinary
c
atalog updates and
can be rolled back.
the <literal>OWNED BY</>
, <literal>RENAME</>, and <literal>SET SCHEMA</>
c
lauses cause ordinary catalog updates that
can be rolled back.
</para>
<para>
...
...
@@ -239,20 +228,30 @@ ALTER SEQUENCE serial RESTART WITH 105;
<para>
Some variants of <command>ALTER TABLE</command> can be used with
sequences as well; for example, to rename a sequence
use <command>ALTER
TABLE RENAME</command>.
sequences as well; for example, to rename a sequence
it is also
possible to use <command>ALTER
TABLE RENAME</command>.
</para>
</refsect1>
<refsect1>
<title>Examples</title>
<para>
Restart a sequence called <literal>serial</literal>, at 105:
<programlisting>
ALTER SEQUENCE serial RESTART WITH 105;
</programlisting>
</para>
</refsect1>
<refsect1>
<title>Compatibility</title>
<para>
<command>ALTER SEQUENCE</command> conforms to the <acronym>SQL</acronym>
standard,
except for the <literal>OWNED BY</> and <literal>SET SCHEMA</literal>
clauses, which are
<productname>PostgreSQL</productname> extensions.
standard,
except for the <literal>OWNED BY</>, <literal>RENAME</>, and
<literal>SET SCHEMA</literal> clauses, which are
<productname>PostgreSQL</productname> extensions.
</para>
</refsect1>
...
...
doc/src/sgml/ref/alter_view.sgml
View file @
bda5750a
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_view.sgml,v 1.
2 2007/07/08 17:47:38
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_view.sgml,v 1.
3 2007/10/03 16:48:43
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -28,8 +28,9 @@ ALTER VIEW <replaceable>name</replaceable> RENAME TO <replaceable>newname</repla
<title>Description</title>
<para>
<command>ALTER VIEW</command> changes the definition of a
view. To execute this command you must be the owner of the view.
<command>ALTER VIEW</command> changes the definition of a view.
The only currently available functionality is to rename the view.
To execute this command you must be the owner of the view.
</para>
</refsect1>
...
...
@@ -57,6 +58,18 @@ ALTER VIEW <replaceable>name</replaceable> RENAME TO <replaceable>newname</repla
</variablelist>
</refsect1>
<refsect1>
<title>Notes</title>
<para>
Some variants of <command>ALTER TABLE</command> can be used with
views as well; for example, to rename a view it is also
possible to use <command>ALTER TABLE RENAME</command>. To change
the schema or owner of a view, you currently must use <command>ALTER
TABLE</>.
</para>
</refsect1>
<refsect1>
<title>Examples</title>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment