Gerardo Herzig <gherzig@xxxxxxxxxxx> writes: > Tom, thanks (as allways) for your answer. This is a 9.1.12. I have to say, im not very happy about if-elif-else'ing at all. > The "conditional filter" es a pretty common pattern in our functions, i would have to add (and maintain) a substantial amount of extra code. In that case consider moving to 9.2 or later. I believe it'd handle this scenario better. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance