From d5e99ab4d6718e8ef515575e33fb5c6181cdcc96 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 29 Mar 2002 19:06:29 +0000 Subject: pg_type has a typnamespace column; system now supports creating types in different namespaces. Also, cleanup work on relation namespace support: drop, alter, rename commands work for tables in non-default namespaces. --- src/backend/utils/cache/temprel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/backend/utils/cache/temprel.c') diff --git a/src/backend/utils/cache/temprel.c b/src/backend/utils/cache/temprel.c index 88dc606cb0e..7ab609eaf36 100644 --- a/src/backend/utils/cache/temprel.c +++ b/src/backend/utils/cache/temprel.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.35 2001/03/22 03:59:58 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.36 2002/03/29 19:06:16 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -227,13 +227,7 @@ remove_all_temp_relations(void) continue; /* ignore it if deleted already */ if (temp_rel->relkind != RELKIND_INDEX) - { - char relname[NAMEDATALEN]; - - /* safe from deallocation */ - strcpy(relname, NameStr(temp_rel->user_relname)); - heap_drop_with_catalog(relname, allowSystemTableMods); - } + heap_drop_with_catalog(temp_rel->relid, allowSystemTableMods); else index_drop(temp_rel->relid); /* advance cmd counter to make catalog changes visible */ -- cgit v1.2.3