Re: [HACKERS] Ye olde "relation doesn't quite exist" problem - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Ye olde "relation doesn't quite exist" problem
Date
Msg-id 3757461A.4889594B@krs.ru
Whole thread Raw
In response to Re: [HACKERS] Ye olde "relation doesn't quite exist" problem  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Ye olde "relation doesn't quite exist" problem
List pgsql-hackers
Bruce Momjian wrote:
> 
> > For the moment, I have made it call ResetSystemCache() --- that is, just
> > flush *all* the cache entries.  Scanning the individual entries to find
> > the ones referencing the given relID would require knowing exactly which
> > column to look in for each kind of system cache, which is more knowledge
> > than catcache.c actually has.  Eventually we could improve it.
> >
> > This means it is no longer necessary for heap.c or index.c to call
> > ResetSystemCache() when handling a temp table --- their calls to
> > RelationForgetRelation are sufficient.  I have applied those changes
> > as well.
> 
> Thanks.  I am a little confused.  I thought you just flushed only on
^^^^^^^^^^^^^^^^^^^^
> elog()/abort.  How does the new code work. ^^^^^^^^^^^^
It seems as more right thing to do.

Vadim


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Re: Freezing docs for v6.5
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Open 6.5 items