Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Hmm. Is that really a good idea, compared to hard-wiring the checks >> into nodeSeqscan and friends?
> My eyebrows went up when I read this too. Presumably, if it's hardwired > like you suggest then the planner can't take any account of the filter, > though. Do we want it to? Well, the planner could have hardwired knowledge about the existence of the hardwired filters --- if anything, that'd probably be easier than hacking it to have a similar level of knowledge about generic-looking function calls. But in reality, since we don't know at plan time which userid will execute the constructed plan, I'm not sure we could come up with useful estimates anyway. 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