Re: PL/pgSQL: #option select_into_1_row (was SELECT INTO

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Matt Miller <mattm(at)epx(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: PL/pgSQL: #option select_into_1_row (was SELECT INTO
Date: 2005-08-13 02:42:36
Message-ID: 200508130242.j7D2ga702991@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


This has been saved for the 8.2 release:

http://momjian.postgresql.org/cgi-bin/pgpatches_hold

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

Matt Miller wrote:
> On Mon, 2005-08-08 at 17:18 -0400, Tom Lane wrote:
> > If you think that this should be a global option instead of a
> > per-statement one, something like the (undocumented) #option hack might
> > be a good way to specify it; that would give it per-function scope,
> > which seems reasonable.
> >
> > create function myfn(...) returns ... as $$
> > #option select_into_1_row
> > declare ...
> > $$ language plpgsql;
>
> Attached is a patch that implements the "#option select_into_1_row"
> directive as suggested.
>
> Is it time to document this directive?

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-08-13 02:48:26 Re: CREATE TABLE synopsis
Previous Message Bruce Momjian 2005-08-13 02:37:36 Re: [PATCHES] prevent encoding conversion recursive error

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-08-13 02:43:26 Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
Previous Message Bruce Momjian 2005-08-13 02:37:36 Re: [PATCHES] prevent encoding conversion recursive error