Re: SearchSysCacheTuple(Copy)
От | Hiroshi Inoue |
---|---|
Тема | Re: SearchSysCacheTuple(Copy) |
Дата | |
Msg-id | 3A11D298.D53FFD6F@tpf.co.jp обсуждение исходный текст |
Ответ на | SearchSysCacheTuple(Copy) (Hiroshi Inoue <Inoue@tpf.co.jp>) |
Список | pgsql-hackers |
Tom Lane wrote: > Hiroshi Inoue <Inoue@tpf.co.jp> writes: > >> A more serious objection to SearchSysCacheTupleCopy is that once the > >> tuple is copied out of the syscache, there isn't any mechanism to > >> detect whether it's still valid. If an SI message arrives for a > >> recently-copied tuple, we have no way to know if we have a problem > >> or not. > > > Is it more serious than doing the wrong thing silently ? > > It'd still be doing the wrong thing silently, in my opinion. > > This class of bugs has been there since the beginning of Postgres, > so I do not feel that we need to panic about it. Not only SI overflow but also relation invalidatation necessarily resets catalog cache. I'm suspicious that the bugs caused by this fragility are rare. For example I doubt that abnormal block numbers are due to this bug. If so we could hardly reproduce the error and it's only the waste of time to investigate the cause. It would be really serious if the broken tuples are stored into database. Regards. Hiroshi Inoue
В списке pgsql-hackers по дате отправления: