diff options
| author | Tom Lane | 2000-06-20 06:41:13 +0000 |
|---|---|---|
| committer | Tom Lane | 2000-06-20 06:41:13 +0000 |
| commit | 9f1a22304695cf2b6ed4497b4e12af8bb40704de (patch) | |
| tree | 235e069936422b49442e8dbc4936395d84291f8c /src/include | |
| parent | 38db5fab29004edff2ee2eea51d72e04ab45870b (diff) | |
Make renaming a temp table behave sensibly. We don't need to touch
the underlying table at all, just change the mapping entry ... but
that logic was missing.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/temprel.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/include/utils/temprel.h b/src/include/utils/temprel.h index 7a1dfa9e1bf..337188b6124 100644 --- a/src/include/utils/temprel.h +++ b/src/include/utils/temprel.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: temprel.h,v 1.9 2000/04/12 17:16:55 momjian Exp $ + * $Id: temprel.h,v 1.10 2000/06/20 06:41:11 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,11 +16,16 @@ #include "access/htup.h" -void create_temp_relation(const char *relname, HeapTuple pg_class_tuple); -void remove_all_temp_relations(void); -void invalidate_temp_relations(void); -void remove_temp_relation(Oid relid); -char *get_temp_rel_by_username(const char *user_relname); -char *get_temp_rel_by_physicalname(const char *relname); +extern void create_temp_relation(const char *relname, + HeapTuple pg_class_tuple); +extern void remove_temp_relation(Oid relid); +extern bool rename_temp_relation(const char *oldname, + const char *newname); + +extern void remove_all_temp_relations(void); +extern void invalidate_temp_relations(void); + +extern char *get_temp_rel_by_username(const char *user_relname); +extern char *get_temp_rel_by_physicalname(const char *relname); #endif /* TEMPREL_H */ |
