Re: Failures in constraints regression test, "read only 0 of 8192 bytes"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Failures in constraints regression test, "read only 0 of 8192 bytes"
Дата
Msg-id 487327.1718925142@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Failures in constraints regression test, "read only 0 of 8192 bytes"  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: Failures in constraints regression test, "read only 0 of 8192 bytes"
Список pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> In commit af0e7deb4a, I removed the call to RelationCloseSmgr() from 
> RelationCacheInvalidate(). I thought it was no longer needed, because we 
> no longer free the underlying SmgrRelation.

> However, it meant that if the relfilenode of the relation was changed, 
> the relation keeps pointing to the SMgrRelation of the old relfilenode. 
> So we still need the RelationCloseSmgr() call, in case the relfilenode 
> has changed.

Ouch.  How come we did not see this immediately in testing?  I'd have
thought surely such a bug would be exposed by any command that
rewrites a heap.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Pluggable cumulative statistics
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Direct SSL connection and ALPN loose ends