1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-25 13:17:41 +03:00

Make renamerel take an OID, not a RangeVar, to identify the relation

to rename.  Avoids some corner-case bugs in cluster.c, improves
consistency with renameatt.
This commit is contained in:
Tom Lane
2002-03-31 07:49:30 +00:00
parent 3114102521
commit d51675169f
4 changed files with 62 additions and 85 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: rename.h,v 1.15 2002/03/29 19:06:22 tgl Exp $
* $Id: rename.h,v 1.16 2002/03/31 07:49:30 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -15,11 +15,11 @@
#define RENAME_H
extern void renameatt(Oid relid,
char *oldattname,
char *newattname,
const char *oldattname,
const char *newattname,
bool recurse);
extern void renamerel(const RangeVar *relation,
extern void renamerel(Oid relid,
const char *newrelname);
#endif /* RENAME_H */