mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
New NameStr macro to convert Name to Str. No need for var.data anymore.
Fewer calls to nameout. Better use of RelationGetRelationName.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.38 1999/10/26 03:12:34 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.39 1999/11/07 23:08:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -233,7 +233,7 @@ AttributeAndRelationRemove(Oid typeOid)
|
||||
{
|
||||
char *name;
|
||||
|
||||
name = (((Form_pg_class) GETSTRUCT(tup))->relname).data;
|
||||
name = NameStr(((Form_pg_class) GETSTRUCT(tup))->relname);
|
||||
heap_destroy_with_catalog(name);
|
||||
}
|
||||
heap_endscan(scan);
|
||||
|
||||
Reference in New Issue
Block a user