May. 17th, 2016

nataraj: (Бритый небритый)
While trying to add something useful into INSERT statement, I wrote more simple example, just to find out how it should work.
I think this might be helpful to people that also want to hack into that area.

Example is very simple, it adds keyword TEST into the definition of attribute list into CREATE INDEX statement, and in ComputeIndexAttrs it says using elog(WARNING ...) whether it found TEST keyword or not.

postgres=# create index  ON mytable (i TEST 'value');
WARNING:  Creating index for column i with TEST value
CREATE INDEX 
postgres=# create index  ON mytable  (i);
WARNING:  TEST is empty
CREATE INDEX


This example is not for production development, it just shows what part of code you should touch in order to modify grammar.

grammar_example.diff )

Profile

nataraj: (Default)
Swami Dhyan Nataraj

July 2024

S M T W T F S
 123456
789 10111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 11th, 2026 07:53 pm
Powered by Dreamwidth Studios