Re: mixed, named notation support

Поиск
Список
Период
Сортировка
Искать
От
Bernd Helmle
Тема
Re: mixed, named notation support
Дата
Msg-id
DADFACCFF537E9A8F7CA2F3C@teje
Ответ на
Список
Дерево обсуждения
mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Robert Haas <robertmhaas@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Steve Prentice <prentice@cisco.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Robert Haas <robertmhaas@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Tom Lane <tgl@sss.pgh.pa.us>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Robert Haas <robertmhaas@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Tom Lane <tgl@sss.pgh.pa.us>
Re: mixed, named notation support Robert Haas <robertmhaas@gmail.com>
Re: mixed, named notation support Tom Lane <tgl@sss.pgh.pa.us>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Tom Lane <tgl@sss.pgh.pa.us>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Pavel Stehule <pavel.stehule@gmail.com>
Re: mixed, named notation support Robert Haas <robertmhaas@gmail.com>
Re: mixed, named notation support Tom Lane <tgl@sss.pgh.pa.us>
Re: mixed, named notation support Robert Haas <robertmhaas@gmail.com>
Re: mixed, named notation support Tom Lane <tgl@sss.pgh.pa.us>
Re: mixed, named notation support "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: mixed, named notation support Steve Prentice <prentice@cisco.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
Re: mixed, named notation support Steve Prentice <prentice@cisco.com>
Re: mixed, named notation support Bernd Helmle <mailings@oopsware.de>
--On Donnerstag, März 05, 2009 08:41:28 +0100 Pavel Stehule 
 wrote:

> Hello
>
> I did some cleaning on this feature, and I hope so I solve some Tom's
> objections
>
> features:
>  * PostgreSQL's specific syntax for named parameter: value AS name,
>  * Doesn't change rules for defaults,
>  * Get defaults for named, mixed notation in planner time.
>

Pavel, consider the following function:

CREATE OR REPLACE FUNCTION ftest(a int, b text)
RETURNS RECORD
LANGUAGE SQL
AS
$$       SELECT $1, $2 ;
$$;

#= SELECT ftest('blubb' AS b, 128 AS a);
ERROR:  function ftest(unknown, integer) does not exist at character 8

#= SELECT ftest(128 AS a, 'abcd' AS b);  ftest
------------(128,abcd)
(1 row)

Isn't the first one supposed to work?


--  Thanks
                   Bernd

В списке pgsql-hackers по дате отправления
От: Jaime Casanova
Дата:
От: Pavel Stehule
Дата:
FAQ