diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-30 22:14:09 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-30 22:14:09 +0000 |
commit | 8f9fa0e14320c5e2f2d0514e5b6c404ec7b54016 (patch) | |
tree | 60459ec9f850ee902ba544c6a0102ec4aba634a7 /src/backend/utils/cache/relcache.c | |
parent | 3a9a74a09dc28268635e0a4c81411ab274d7adac (diff) | |
download | postgresql-8f9fa0e14320c5e2f2d0514e5b6c404ec7b54016.tar.gz postgresql-8f9fa0e14320c5e2f2d0514e5b6c404ec7b54016.zip |
Type lztext is toast.
(Sorry, couldn't help it...)
Removed type filename as well, since it's unused and probably useless.
INITDB FORCED, because pg_rewrite columns are now plain text again.
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index a7cb0ecac49..84f20757d6a 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.107 2000/07/14 22:17:50 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.108 2000/07/30 22:13:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -775,7 +775,9 @@ RelationBuildRuleLock(Relation relation) Anum_pg_rewrite_ev_action, pg_rewrite_tupdesc, &isnull); - ruleaction_str = lztextout((lztext *) DatumGetPointer(ruleaction)); + Assert(! isnull); + ruleaction_str = DatumGetCString(DirectFunctionCall1(textout, + ruleaction)); oldcxt = MemoryContextSwitchTo(CacheMemoryContext); rule->actions = (List *) stringToNode(ruleaction_str); MemoryContextSwitchTo(oldcxt); @@ -785,7 +787,9 @@ RelationBuildRuleLock(Relation relation) Anum_pg_rewrite_ev_qual, pg_rewrite_tupdesc, &isnull); - rule_evqual_str = lztextout((lztext *) DatumGetPointer(rule_evqual)); + Assert(! isnull); + rule_evqual_str = DatumGetCString(DirectFunctionCall1(textout, + rule_evqual)); oldcxt = MemoryContextSwitchTo(CacheMemoryContext); rule->qual = (Node *) stringToNode(rule_evqual_str); MemoryContextSwitchTo(oldcxt); |