diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-12-22 23:12:07 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-12-22 23:12:07 +0000 |
commit | 90f42847b5ed5ed94a1221695e803d522db257b4 (patch) | |
tree | c6f4914e38a84556f93b6e9b3e44b601170fc911 /src/include/utils/temprel.h | |
parent | 7558da669f0cd5144e87f660e0a3422f61806487 (diff) | |
download | postgresql-90f42847b5ed5ed94a1221695e803d522db257b4.tar.gz postgresql-90f42847b5ed5ed94a1221695e803d522db257b4.zip |
Small cleanup of temp-table handling. Disallow creation of a non-temp
table that inherits from a temp table. Make sure the right things happen
if one creates a temp table, creates another temp that inherits from it,
then renames the first one. (Previously, system would end up trying to
delete the temp tables in the wrong order.)
Diffstat (limited to 'src/include/utils/temprel.h')
-rw-r--r-- | src/include/utils/temprel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/temprel.h b/src/include/utils/temprel.h index 789d5058789..8c19c8e127d 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.12 2000/11/08 22:10:03 tgl Exp $ + * $Id: temprel.h,v 1.13 2000/12/22 23:12:07 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -28,4 +28,6 @@ extern void AtEOXact_temp_relations(bool isCommit); extern char *get_temp_rel_by_username(const char *user_relname); extern char *get_temp_rel_by_physicalname(const char *relname); +#define is_temp_rel_name(relname) (get_temp_rel_by_username(relname) != NULL) + #endif /* TEMPREL_H */ |