Re: Finding number of rows deleted in a stored procedure

From: "Ross Bagley" <ross(at)rossbagley(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Finding number of rows deleted in a stored procedure
Date: 2007-10-02 21:32:31
Message-ID: 42c4217a0710021432i791a1de3w95bdcb40b104594a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In this simplified case, given an open SQL connection, you're correct.
That would simplify this query, and I'm a little embarrassed not to
have seen that (obexcuse: I've been spending too much time in
Java-land lately). There is more to the function than I included in
my question, so it does need to be a function and can't be straight
SQL.

Thanks,
Ross

On 10/2/07, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
> Maybe I am missing something, but wouldn't ON DELETE CASCADE do what you
> need?

--
Ross Bagley
"Security is mostly a superstition. It does not exist in nature...
Life is either a daring adventure or nothing." -- Helen Keller

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2007-10-02 22:19:47 pg_dump
Previous Message Ross Bagley 2007-10-02 21:32:26 Re: Finding number of rows deleted in a stored procedure