Re: pgsql: Remove ineffective check against dropped columns from slot_getat

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pgsql: Remove ineffective check against dropped columns from slot_getat
Дата
Msg-id CAKJS1f-F_hPnGh+bGygMy64t4osgY6M+sjW4ykvqmkxrdabL0Q@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Remove ineffective check against dropped columns fromslot_getat  (Andres Freund <andres@anarazel.de>)
Ответы Re: pgsql: Remove ineffective check against dropped columns fromslot_getat  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
On 10 November 2018 at 14:41, Andres Freund <andres@anarazel.de> wrote:
> These days locking and plan invalidation ought to ensure that dropped
> columns are not accessed in query plans. Therefore this commit just
> drops the insufficient check in slot_getattr().  It's possible that
> we'll find some holes againt use of dropped columns, but if so, those
> need to be addressed independent of slot_getattr(), as most accesses
> don't go through that function anyway.

Would it not be worth an Assert(!TupleDescAttr(tupleDesc, attnum -
1)->attisdropped); so that we're more likely to discover any issues
where cached plans are not invalidated correctly?

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: pgsql: Split ExecStoreTuple into ExecStoreHeapTuple and ExecStoreBuffer
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Apply RI trigger skipping tests also for DELETE