Re: [HACKERS] Parser Modification Problem: Get the columns of a Table

2003-12-07 Thread Tom Lane
=?iso-8859-7?q?NK?= <[EMAIL PROTECTED]> writes: > Could you please tell me the way to take the names of the columns? There is no way to do that in the grammar, because it doesn't have the information available. You could probably modify the insert-statement processing in analyze.c to print out th

[HACKERS] Parser Modification Problem: Get the columns of a Table

2003-12-07 Thread NK
Dear Friends,   I am trying to modify the parser of the postgresql so as to print all the columns of a table (or to put them in a seperate file) when the parser meets an Insert Statement. In the file (/src/backend/parser/gram.y) ,   InsertStmt:   INSERT INTO qualified_name insert_rest{ $4