From a55898131e0c68efc5836a6cada8e34e47678b71 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Tue, 3 Jul 2007 01:30:37 +0000 Subject: 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. --- src/include/commands/tablecmds.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include/commands/tablecmds.h') 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, -- cgit v1.2.3