Re: Syntax of xmltable function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Syntax of xmltable function
Дата
Msg-id 20268.1469980380@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Syntax of xmltable function  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Syntax of xmltable function  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> The SQL/XML syntax is:

> XMLTABLE (
>   xmlquery
>   PASSING xmldocument
>   [COLUMNS columns_list] )

> columns_list := column_list ',' colname

> colname := colname datatype [DEFAULT value] [PATH text]

> The DEFAULT clause is before PATH clause.

> A Oracle db uses little bit different syntax - the DEFAULT and PATH clause
> are in different order. This is little bit better for Postgres too - now I
> can use a_expr in DEFAULT clause - what can be little bit better for other
> than text types.

> What should be preferrable? ANSI SQL syntax or Oracle syntax? This is not
> often task - I didn't find any example with DEFAULT clause for Oracle.

ISTM that the ordering of those two clauses is totally arbitrary, and
that if you're going to worry about Oracle at all, it'd be best to allow
both orderings.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: Slowness of extended protocol
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables)