Andres Freund <and...@2ndquadrant.com> writes: > So the idea would be to skip about-to-be-dropped indexes in > RelationGetIndexList directly - we don't ever need to watch those, not > even for HOT - because we only have the necessary knowledge there. The > normal valid/ready checks will be done at the callsites of > RelationGetIndexList(). But those checks can be done in a locked manner > now.
Right. > Are you already working on a fix? Or shall I work on an updated patch? I'll work on it. > I vote for introducing wrapper functions/macro to do the > about-to-be-dropped check, its hard enough to understand as-is. Meh. If it's only going to be done in RelationGetIndexList, I'm not sure that a wrapper macro is worth the trouble. If we needed the test in multiple places I'd agree, but what other spots do you see? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers