diff --git a/doc/src/sgml/ref/alter_sequence.sgml b/doc/src/sgml/ref/alter_sequence.sgml
index c2bc3cd8bf5..b515ae46016 100644
--- a/doc/src/sgml/ref/alter_sequence.sgml
+++ b/doc/src/sgml/ref/alter_sequence.sgml
@@ -1,5 +1,5 @@
@@ -28,8 +28,8 @@ ALTER SEQUENCE name [ INCREMENT [ B
[ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
[ RESTART [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
[ OWNED BY { table.column | NONE } ]
-ALTER SEQUENCE name SET SCHEMA new_schema
ALTER SEQUENCE name RENAME TO new_name
+ALTER SEQUENCE name SET SCHEMA new_schema
@@ -184,19 +184,19 @@ ALTER SEQUENCE name RENAME TO
- new_schema
+ new_name
- The new schema for the sequence.
+ The new name for the sequence.
- new_name
+ new_schema
- The new name for the sequence.
+ The new schema for the sequence.
@@ -205,17 +205,6 @@ ALTER SEQUENCE name RENAME TO
-
- Examples
-
-
- Restart a sequence called serial, at 105:
-
-ALTER SEQUENCE serial RESTART WITH 105;
-
-
-
-
Notes
@@ -224,8 +213,8 @@ ALTER SEQUENCE serial RESTART WITH 105;
same sequence, ALTER SEQUENCE's effects on the sequence
generation parameters are never rolled back;
those changes take effect immediately and are not reversible. However,
- the OWNED BY> and SET SCHEMA> clauses are ordinary
- catalog updates and can be rolled back.
+ the OWNED BY>, RENAME>, and SET SCHEMA>
+ clauses cause ordinary catalog updates that can be rolled back.
@@ -239,20 +228,30 @@ ALTER SEQUENCE serial RESTART WITH 105;
Some variants of ALTER TABLE can be used with
- sequences as well; for example, to rename a sequence use ALTER
- TABLE RENAME.
+ sequences as well; for example, to rename a sequence it is also
+ possible to use ALTER TABLE RENAME.
+
+ Examples
+
+
+ Restart a sequence called serial, at 105:
+
+ALTER SEQUENCE serial RESTART WITH 105;
+
+
+
Compatibility
ALTER SEQUENCE conforms to the SQL
- standard,
- except for the OWNED BY> and SET SCHEMA
- clauses, which are PostgreSQL extensions.
+ standard, except for the OWNED BY>, RENAME>, and
+ SET SCHEMA clauses, which are
+ PostgreSQL extensions.
diff --git a/doc/src/sgml/ref/alter_view.sgml b/doc/src/sgml/ref/alter_view.sgml
index 4d0c657d184..7dd052cc124 100644
--- a/doc/src/sgml/ref/alter_view.sgml
+++ b/doc/src/sgml/ref/alter_view.sgml
@@ -1,5 +1,5 @@
@@ -28,8 +28,9 @@ ALTER VIEW name RENAME TO newnameDescription
- ALTER VIEW changes the definition of a
- view. To execute this command you must be the owner of the view.
+ ALTER VIEW 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.
@@ -57,6 +58,18 @@ ALTER VIEW name RENAME TO newname
+
+ Notes
+
+
+ Some variants of ALTER TABLE can be used with
+ views as well; for example, to rename a view it is also
+ possible to use ALTER TABLE RENAME. To change
+ the schema or owner of a view, you currently must use ALTER
+ TABLE>.
+
+
+
Examples