[GENERAL] Adding a new Clause in the Source Code - Mailing list pgsql-general

From Stefan Wagner
Subject [GENERAL] Adding a new Clause in the Source Code
Date
Msg-id trinity-02ce95bc-96b4-4623-9d17-c9011e399bf4-1502698442962@3c-app-gmx-bs28
Whole thread Raw
Responses Re: [GENERAL] Adding a new Clause in the Source Code
List pgsql-general
Recently I started to take a look at Postgresql on the Source Level. I wanted to extend the Parser by a simple Clause which isn't as easy as I expected.
Hence I'm here asking for help. This might seem trivial for a Person which is able to answer this Question but please take a moment of your time and help a
fellow coder out. 
 
My Objective is to add a new Clause after the WHERE Clause in a SELECT Statement which modifys the order of my result. I allready invested some time to get familar
with the Bison part in source\src\backend\parser so adding new Keywords seems possible. The question now is in which Files do I need to add what to make it work.
Yes this question seems a bit broad but Information I found was confusing or outdated.
 
I would really appreciate if someone could hack me a quick example of a new clause lets call it ADDITIONAL with Keywords HIGH, LOW to order columns. I just want the construct. What
the Keywords accomplish and the Algorithm is something I'm gonna try to figure out on my own. I just need to know in which File and which Line I need to enter my Code.
 
I appreciate any help I can get and if needed I'll add some additional Information.

pgsql-general by date:

Previous
From: Arthur Zakirov
Date:
Subject: Re: [GENERAL] Where is pg_hba.conf
Next
From: Peter Eisentraut
Date:
Subject: Re: [GENERAL] Adding a new Clause in the Source Code