Re: proposal sql: labeled function params - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: proposal sql: labeled function params
Date
Msg-id 200808162044.39442.peter_e@gmx.net
Whole thread Raw
In response to Re: proposal sql: labeled function params  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
On Saturday 16 August 2008 09:38:41 Pavel Stehule wrote:
> because you have to write labels, where labels are equal with column
> names. I would to add same comfort like SQL/XML functions.

Just a thought: You might be able to design this in some way to work on top of 
named parameter calling.  Define a function with variadic arguments and allow 
passing arbitrary parameter names.  Before you can use that to implement 
xmlforest in user space you need to work out the issue of passing arbitrary 
argument types.  But that is also something that would be interesting for 
other purposes.


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Parsing of pg_hba.conf and authentication inconsistencies
Next
From: Hannu Krosing
Date:
Subject: Re: proposal sql: labeled function params