Pavel, > I propose add this statement to PL/pgSQL too.
Isn't there a danger of syntactical conflict with the SQL SELECT ... CASE statement? I'd love to have CASE in PL/pgSQL, but I always thought that stood in the way. -- Josh Berkus PostgreSQL @ Sun San Francisco ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org