ResetSystemCaches(was Re: relation ### modified while in use) - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject ResetSystemCaches(was Re: relation ### modified while in use)
Date
Msg-id 3A0602AD.25D2591C@tpf.co.jp
Whole thread Raw
In response to RE: relation ### modified while in use  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses Re: ResetSystemCaches(was Re: relation ### modified while in use)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi

RelationCacheInvalidate() is called from ResetSystemCaches()
and calles RelationFlushRelation() for all relation descriptors
except some nailed system relations.
I'm wondering why nailed relations could be exceptions.
Conversely why must RelationCacheInvalidate() call
RelationFlushRelation() for other system relations ?
Isn't it sufficient to call smgrclose() and replace rd_rel
member of system relations by the latest ones instead
of calling RelationFlushRelation() ?
There's -O option of postmaster(postgres) which allows
system table structure modification.  I'm suspicious
if it has been used properly before.

Comments ?

Regards.
Hiroshi Inoue



pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: Transaction ID wraparound: problem and proposed solution
Next
From: Tatsuo Ishii
Date:
Subject: Re: Unicode conversion (Re: [COMMITTERS] pgsql (configure.in))