Re: pgsql: Remove ineffective check against dropped columns from slot_getat - Mailing list pgsql-committers

From David Rowley
Subject Re: pgsql: Remove ineffective check against dropped columns from slot_getat
Date
Msg-id CAKJS1f-F_hPnGh+bGygMy64t4osgY6M+sjW4ykvqmkxrdabL0Q@mail.gmail.com
Whole thread Raw
In response to pgsql: Remove ineffective check against dropped columns fromslot_getat  (Andres Freund <andres@anarazel.de>)
Responses Re: pgsql: Remove ineffective check against dropped columns fromslot_getat
List 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 by date:

Previous
From: David Rowley
Date:
Subject: Re: pgsql: Split ExecStoreTuple into ExecStoreHeapTuple and ExecStoreBuffer
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Apply RI trigger skipping tests also for DELETE