On 17/01/2008, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > Josh Berkus wrote: > > 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. > > > > Could it be called SWITCH instead? > I unlike it. There isn't reason why don't implement ANSI SQL standard construct.
Pavel > Joshua D. Drake > ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match