Search Postgresql Archives

Re: Passing tokens to a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Bailey <artacus@xxxxxxxxxxx> writes:
> I'd like to make an XMLTABLE() function, probably in plpython (not C). 
> And I'd like to follow the SQL/XML standard. So a function call should 
> look something like this:

> SELECT *
> FROM XMLTABLE('//node'
>    PASSING xmldoc
>    COLUMNS id INT PATH '@id',
>      name VARCHAR(30) PATH 'name')

> Is this possible to pass in the tokens or do I need to abandon the 
> standard and just take parameters,

The latter, unless you want to modify the parser (see gram.y).

The SQL committee's willingness to invent random syntax like this
is not one of their better habits :-(

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux