Re: improve FOUND in PL/PgSQL

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: improve FOUND in PL/PgSQL
Date: 2002-08-14 05:47:57
Message-ID: 200208140547.g7E5lvt02867@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Your patch has been added to the PostgreSQL unapplied patches list at:

http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Neil Conway wrote:
> This patch improves the behavior of FOUND in PL/PgSQL. In Oracle,
> FOUND is set whenever a SELECT INTO returns > 0 rows, *or* when an
> INSERT, UPDATE, or DELETE affects > 0 rows. We implemented the first
> part of this behavior, but not the second.
>
> I also improved the documentation on the various situations in which
> FOUND can be set (excluding inside FOR loops, which I still need to
> think about), and added some regression tests for this behavior.
>
> Cheers,
>
> Neil
>
> --
> Neil Conway <neilconway(at)rogers(dot)com>
> PGP Key ID: DB3C29FC

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2002-08-14 05:52:30 Re: [HACKERS] CREATE TEMP TABLE .... ON COMMIT
Previous Message Tom Lane 2002-08-14 05:44:05 Re: Better handling of parse errors