Re: WIP: Allow SQL-language functions to reference parameters by parameter name - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: WIP: Allow SQL-language functions to reference parameters by parameter name
Date
Msg-id 4DA71ED0020000250003C849@gw.wicourts.gov
Whole thread Raw
In response to Re: WIP: Allow SQL-language functions to reference parameters by parameter name  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: WIP: Allow SQL-language functions to reference parameters by parameter name  (Jim Nasby <jim@nasby.net>)
Re: WIP: Allow SQL-language functions to reference parameters by parameter name  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: Allow SQL-language functions to reference parameters by parameter name
Next
From: Andres Freund
Date:
Subject: Re: Single client performance on trivial SELECTs