Possible to modify query language in an extension?

Поиск
Список
Период
Сортировка
От Chris Cleveland
Тема Possible to modify query language in an extension?
Дата
Msg-id CABSN6VeeEhwb0HrjOCp9kHaWm0Ljbnko5y-0NKsT_=5i5C2jog@mail.gmail.com
обсуждение исходный текст
Ответы Re: Possible to modify query language in an extension?
Список pgsql-hackers
Noob here. I'm getting started on building a Postgres extension.

I'd like to add some keywords/clauses to the SELECT statement. For my particular application, the syntax with new keywords would be way better than trying to do it through functions alone. I would add some new keywords followed by expressions similar to those allowed in WHERE and GROUP BY clauses. The new SELECT would return multiple result sets.

I did find an example where someone did modify the parser: http://www.neilconway.org/talks/hacking/hack_slides.pdf

Question: is it possible to do this in an extension? Or do I have to fork the Postgres codebase itself?

Obviously, I'd prefer the former. Forks are bad.

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

Предыдущее
От: Euler Taveira
Дата:
Сообщение: Re: proposal: pg_restore --convert-to-text
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: [HACKERS] PATCH: multivariate histograms and MCV lists