Re: named parameters in SQL functions
От | Tom Lane |
---|---|
Тема | Re: named parameters in SQL functions |
Дата | |
Msg-id | 29780.1258340651@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: named parameters in SQL functions (Andrew Dunstan <andrew@dunslane.net>) |
Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes: > Robert Haas wrote: >> Well that is the tricky part, for sure. I would personally prefer >> something like ${name} rather than a prefix, but I think you're likely >> to veto that outright. So, anything reasonably short would be an >> improvement over the status quo. self? this? my? >> > I think it would have to be a reserved word. The obvious existing > keyword to use is "function" but unless I'm mistaken we'd need to move > it from unreserved keyword to reserved, and I'm not sure this would > justify that. All of these are fundamentally illegal syntax, which as was already pointed out up-thread is likely to introduce nasty side-effects of its own. Not to mention being an order of magnitude harder to implement. We have a hook to implement resolving a ColumnRef, ie a qualified identifier. We don't have support for random other things. regards, tom lane
В списке pgsql-hackers по дате отправления: