Richard Huxton <[EMAIL PROTECTED]> writes: > I must say I thought recent versions of PG delayed planning the query > until first call though.
No, you're thinking of parameterized queries sent through the FE/BE protocol. Functions still plan without any assumptions about parameter values. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly