Re: PL/pgSQL examples NOT involving functions

From: Roland Roberts <roland(at)astrofoto(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: PL/pgSQL examples NOT involving functions
Date: 2001-11-19 04:00:07
Message-ID: m2lmh3jtq0.fsf@kuiper.rlent.pnet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-sql

>>>>> "Josh" == Josh Berkus <josh(at)agliodbs(dot)com> writes:

Josh> Personally, I find that keeping track, on the client side,
Josh> of whether you're adding a new record or editing an old one
Josh> and acting appropriately is better than trying to
Josh> second-guess it on the database level, but maybe that's just
Josh> me.

Well, that's basically what I'm trying to do. But finding out whether
I need to insert or update requires doing something like my pseudo-SQL
example. I was just trying to figure out if I could do in in SQL
pl/pgSQL.

roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland(at)rlenter(dot)com 76-15 113th Street, Apt 3B
roland(at)astrofoto(dot)org Forest Hills, NY 11375

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2001-11-19 04:00:45 Re: release docs
Previous Message Roland Roberts 2001-11-19 03:57:05 Re: [SQL] PL/pgSQL examples NOT involving functions

Browse pgsql-sql by date

  From Date Subject
Next Message cnliou 2001-11-19 07:17:59 Re: Foreign Key Constraint Deletion Order
Previous Message Roland Roberts 2001-11-19 03:57:05 Re: [SQL] PL/pgSQL examples NOT involving functions