Re: WIP: hooking parser
От
Tom Lane
Тема
Re: WIP: hooking parser
Дата
Msg-id
11002.1234371936@sss.pgh.pa.us
Ответ на
Re: WIP: hooking parser (Pavel Stehule)
Список
Дерево обсуждения
WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Gregory Stark <stark@enterprisedb.com>
Re: WIP: hooking parser Kenneth Marshall <ktm@rice.edu>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Pavel Stehule writes: > 2009/2/11 Tom Lane : >> This strikes me as next door to useless, because it can only handle >> things that look like valid expressions to the existing grammar. >> So pretty much all you can do is weird sorts of functions, which are >> already accommodated at less effort with existing features such as >> function overloading. > Usually we don't need change syntax. But we need to control of > coercion stage. I afraid so function overloading is bad when there lot > of combination, and polymorphic functions are not enough. > for some cases we need more polymorphic types - anyelement1, > anyelement2, anyarray1, ... Well, then we should go fix those things. A hook function whose purpose is to fundamentally change query semantics strikes me as a very dangerous thing anyway, because your queries either stop working or suddenly do something completely different if the hook happens not to be loaded. The hooks we've accepted to date are intended for either monitoring or experimentation with planner behavior, neither of which will change query semantics. regards, tom lane
В списке pgsql-hackers по дате отправления