Re: Named parameter notation in Postgresql 9.0

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Named parameter notation in Postgresql 9.0
Дата
Msg-id 4BD0CC22.6040400@agliodbs.com
обсуждение исходный текст
Ответ на Named parameter notation in Postgresql 9.0  (Ingmar Brouns <swingi@gmail.com>)
Список pgsql-testers
On 4/22/10 9:27 AM, Ingmar Brouns wrote:
> Wouldn't it be better to relax this constraint, and instead check that
> when a function is being called using positional notation, that all
> parameters must have been provided until (including) the last
> parameter that has no default value.

The problem is that you can't know how the function is going to be
called in the future.  That is, regardless of how you create the proc,
it could be called either named or positionally.  Checking it at calling
time doesn't work because we need to create the "fingerprint" of a proc
when it's created, not when it's called.

So, potentially solvable but will require a lot more mucking around with
function call code to make it work.  You're welcome to hack on it.

--
                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.
                                     http://www.pgexperts.com

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

Предыдущее
От: Ingmar Brouns
Дата:
Сообщение: Named parameter notation in Postgresql 9.0
Следующее
От: Steve Singer
Дата:
Сообщение: Re: schema.table.column syntax no longer supported?