On 12/17/07, Louis-David Mitterrand <vindex+lists-pgsql-sql(at)apartia(dot)org> wrote:> I've got this ugly case statement that I'd like to hide in a function:
Why don't you hide the entire query in a VIEW?