aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/rename.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-10-22 23:32:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-10-22 23:32:48 +0000
commit9ace03183c56ca3474679bc56316e962d0af4b81 (patch)
treefd385e10d8d458985f9410ccc4170ae6fa5acb26 /src/backend/commands/rename.c
parentee28d8b3d509593c980b8cdcc5a8943a429bdc9b (diff)
downloadpostgresql-9ace03183c56ca3474679bc56316e962d0af4b81.tar.gz
postgresql-9ace03183c56ca3474679bc56316e962d0af4b81.zip
Some small polishing of Mark Hollomon's cleanup of DROP command: might
as well allow DROP multiple INDEX, RULE, TYPE as well. Add missing CommandCounterIncrement to DROP loop, which could cause trouble otherwise with multiple DROP of items affecting same catalog entries. Try to bring a little consistency to various error messages using 'does not exist', 'nonexistent', etc --- I standardized on 'does not exist' since that's what the vast majority of the existing uses seem to be.
Diffstat (limited to 'src/backend/commands/rename.c')
-rw-r--r--src/backend/commands/rename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/rename.c b/src/backend/commands/rename.c
index ad7f25bbfd8..0f41cac1dc7 100644
--- a/src/backend/commands/rename.c
+++ b/src/backend/commands/rename.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.50 2000/10/20 02:53:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.51 2000/10/22 23:32:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -137,7 +137,7 @@ renameatt(char *relname,
PointerGetDatum(oldattname),
0, 0);
if (!HeapTupleIsValid(oldatttup))
- elog(ERROR, "renameatt: attribute \"%s\" nonexistent", oldattname);
+ elog(ERROR, "renameatt: attribute \"%s\" does not exist", oldattname);
if (((Form_pg_attribute) GETSTRUCT(oldatttup))->attnum < 0)
elog(ERROR, "renameatt: system attribute \"%s\" not renamed", oldattname);