Re: Possible to modify query language in an extension?
От | Robert Haas |
---|---|
Тема | Re: Possible to modify query language in an extension? |
Дата | |
Msg-id | CA+TgmoabrH89dTvt=5B5tLay6ogB=wFE+fiuOSGT57+z7DVS8w@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Possible to modify query language in an extension? (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On Sun, Mar 17, 2019 at 12:21 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Chris Cleveland <ccleve+github@dieselpoint.com> writes: > > I'd like to add some keywords/clauses to the SELECT statement. > > Yeah, you'll have to modify gram.y (and a pile of other places) > if you want to do that. That's certainly something we do all > the time, but bison doesn't provide any way to add grammar > productions on-the-fly, so it does imply core-code mods. > > > ... The new SELECT would return multiple result sets. > > And that sounds like you'd also be redefining the wire protocol, > hence having to touch client-side code as well as the server. Long story short, this sounds like a VERY hard project. Chris, you will probably want to think about some other approach to achieving your objective, because this sounds like a project that even an expert coder would spend a lot of time trying to get done. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: