Alvaro Herrera <alvherre@xxxxxxxxxxxxxxxxx> writes: > Matthias Luedtke wrote: >> Basically, conditional statements are annotated with integers that >> represent weights, like >> >> (...)WHERE (foo = 'a')[42] OR (bar = 'b')[20] > (That particular notation has the drawback that the [n] > would be interpreted as an array index though.) Indeed --- unless you are prepared to rip out array support, you had better choose some other notation. regards, tom lane