Fujii Masao <masao(dot)fujii(at)gmail(dot)com> writes:> How about doing target != ALL test at the head for the most common case> (target == ALL)?
That's an idea, but the test you propose implements it incorrectly.
regards, tom lane