diff options
author | Neil Conway <neilc@samurai.com> | 2007-07-03 01:30:37 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-07-03 01:30:37 +0000 |
commit | a55898131e0c68efc5836a6cada8e34e47678b71 (patch) | |
tree | 8fad05c45372be40b8d28376faa257c608e0b94f /src/include/commands/tablecmds.h | |
parent | a1587e41aecf2626c62f96cf07acbe5bca5871a3 (diff) |
Add ALTER VIEW ... RENAME TO, and a RENAME TO clause to ALTER SEQUENCE.
Sequences and views could previously be renamed using ALTER TABLE, but
this was a repeated source of confusion for users. Update the docs,
and psql tab completion. Patch from David Fetter; various minor fixes
by myself.
Diffstat (limited to 'src/include/commands/tablecmds.h')
-rw-r--r-- | src/include/commands/tablecmds.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h index 3acbe84b522..44df10ceb3a 100644 --- a/src/include/commands/tablecmds.h +++ b/src/include/commands/tablecmds.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.33 2007/05/11 20:17:10 tgl Exp $ + * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.34 2007/07/03 01:30:37 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -43,7 +43,8 @@ extern void renameatt(Oid myrelid, bool recursing); extern void renamerel(Oid myrelid, - const char *newrelname); + const char *newrelname, + ObjectType reltype); extern void find_composite_type_dependencies(Oid typeOid, const char *origTblName, |