Re: [GENERAL] conditional execution of insert/update-s

2009-01-24 Thread Jasen Betts
On 2009-01-22, Dmitry Teslenko wrote: > Hello! > Question is what's the easiest way to implement conditional execution > of insert/update-s via psql interface? > > As far as I know there's following options: > 1) create function in procedural language (plpgsql, for example); > then call that func

[GENERAL] conditional execution of insert/update-s

2009-01-22 Thread Dmitry Teslenko
Hello! Question is what's the easiest way to implement conditional execution of insert/update-s via psql interface? As far as I know there's following options: 1) create function in procedural language (plpgsql, for example); then call that function 2) update ... where ; insert ... (select ... whe