Re: WIP: Allow SQL-language functions to reference parameters by parameter name

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Dimitri Fontaine" <dimitri(at)2ndquadrant(dot)fr>, "Josh Berkus" <josh(at)agliodbs(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WIP: Allow SQL-language functions to reference parameters by parameter name
Date: 2011-04-14 21:20:32
Message-ID: 4DA71ED0020000250003C849@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:

>> So far the most promising proposal I've seen seems to be to let
>> id mean the parameter called id only when it can't refer to
>> anything in the query.

> Yeah, I've come round to that position too. I think allowing
> parameter names to be checked only after query names is probably
> the best answer.

+1

That seems the most useful and least surprising approach to me.

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2011-04-14 21:23:53 Re: Single client performance on trivial SELECTs
Previous Message Tom Lane 2011-04-14 21:16:24 Re: WIP: Allow SQL-language functions to reference parameters by parameter name