Re: Proposal: PL/pgSQL EXECUTE INTO USING (for 8.4)

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Brendan Jurd" <direvus(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Subject: Re: Proposal: PL/pgSQL EXECUTE INTO USING (for 8.4)
Date: 2007-10-17 19:20:22
Message-ID: 162867790710171220g102ee0ai45c0b6719c182f68@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2007/10/17, Brendan Jurd <direvus(at)gmail(dot)com>:
> On 10/17/07, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> > New syntax:
> >
> > a) EXECUTE stringexpr
> > [INTO [STRICT] varlist
> > [USING exprlist]
> >
> > b) FOR varlist IN EXECUTE stringexpr USING exprlist LOOP ....
>
> Just chiming in with a +1. I would find this feature very useful.
> Substitution of parameters is way more elegant than quoting, and the
> syntax looks nice.
>

I am doing some simple speed tests, and with USING run dynamic queries
little bit faster (15%). Prepared statement accepts params in binary
form, so we don't need call out functions.

Pavel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2007-10-17 19:34:02 Re: tsearch2api project
Previous Message Tom Lane 2007-10-17 18:59:09 Re: tsearch2api project