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/backend/utils/cache/relcache.c | |
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/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 4e9780462a5..1b7ce6fe18c 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.120 2000/12/09 20:32:44 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.121 2000/12/22 23:12:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1526,7 +1526,7 @@ RelationNameGetRelation(const char *relationName) * ---------------- */ temprelname = get_temp_rel_by_username(relationName); - if (temprelname) + if (temprelname != NULL) relationName = temprelname; /* ---------------- |