Hiroshi Inoue <[EMAIL PROTECTED]> writes: > 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() ? Possibly you could do fixrdesc() instead of just ignoring the report entirely for nailed-in relations. Not sure it's worth worrying about though --- in practice, what is this going to make possible? You can't change the structure of a nailed-in system catalog, nor will adding triggers or rules to it work very well, so I'm not quite seeing the point. BTW, don't forget that there are nailed-in indexes as well as tables. Not sure if that matters to this code, but it might. regards, tom lane
- Re: [HACKERS] relation ### modified while in us... Hiroshi Inoue
- Re: [HACKERS] relation ### modified while in us... Vadim Mikheev
- Re: [HACKERS] relation ### modified while in us... Hiroshi Inoue
- Re: [HACKERS] relation ### modified while in us... Tom Lane
- Re: [HACKERS] relation ### modified while in use Hiroshi Inoue
- Re: [HACKERS] relation ### modified while in use Tom Lane
- RE: [HACKERS] relation ### modified while in use Hiroshi Inoue
- Re: [HACKERS] relation ### modified while in us... Tom Lane
- RE: [HACKERS] relation ### modified while in us... Hiroshi Inoue
- ResetSystemCaches(was Re: [HACKERS] relation ##... Hiroshi Inoue
- Re: ResetSystemCaches(was Re: [HACKERS] relatio... Tom Lane
- Re: ResetSystemCaches(was Re: [HACKERS] relatio... Hiroshi Inoue
- [HACKERS] Recursive use of syscaches (was: rela... Tom Lane
- Re: [HACKERS] Recursive use of syscaches (was: ... Bruce Momjian
- [HACKERS] Re: Recursive use of syscaches (was: ... Tom Lane
- [HACKERS] Re: Recursive use of syscaches (was: ... Hiroshi Inoue
- [HACKERS] Re: Recursive use of syscaches (was: ... Tom Lane
- Re: [HACKERS] Re: Recursive use of syscaches (w... Hiroshi Inoue
- Re: [HACKERS] Re: Recursive use of syscaches (w... Tom Lane
- RE: [HACKERS] relation ### modified while in us... Hiroshi Inoue
- RE: [HACKERS] relation ### modified while in us... Alex Pilosov