Nathan Bossart <nathandboss...@gmail.com> writes: > Given there doesn't seem to be a huge amount of interest in this, I plan to > mark it as Withdrawn soon.
I think you're being too impatient. It's still an interesting topic, it just needs more thought to get to something committable. I find this has-row-security marking problem to be comparable to the has-sublinks marking problem. We've had tons of bugs-of-omission with that too, and the present code feels ugly and not any less prone to omissions than it ever was. I wonder whether considering both problems together would yield any insights, following Polya's dictum that "the more general problem may be easier to solve". One straightforward idea is to just not do the marking at all, but rather require places that want to know these properties to do a fresh search of the query tree when they want to know it. That obviously has performance questions to answer, but it's easier to give answers to performance questions than "is this correct" questions. regards, tom lane