| От | Tom Lane |
|---|---|
| Тема | Re: Calling PL functions with named parameters |
| Дата | |
| Msg-id | 28943.1092438734@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Calling PL functions with named parameters ("Jim C. Nasby" <decibel@decibel.org>) |
| Ответы |
HASHes [was Re: Calling PL functions with named parameters]
|
| Список | pgsql-hackers |
"Jim C. Nasby" <decibel@decibel.org> writes:
> IOW, their function resolution code treats a(int, int default 0) as
> being equivalent to a(int) and a(int, int).
So you are willing to prohibit a(int) from existing in parallel with
a(int, int-with-a-default) ?
I'll be interested to see the unique-index scheme for pg_proc to enforce
that ;-)
However this does point up the fact that there already *is* a way to
accomplish the task, which is just to create some helper function(s) to
supply the default(s). Perhaps we can leave it at that for the time
being, and concentrate on adding real new functionality.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера