Re: Parser Modification Problem: Get the columns of a Table - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Parser Modification Problem: Get the columns of a Table
Date
Msg-id 24004.1070827834@sss.pgh.pa.us
Whole thread Raw
In response to Parser Modification Problem: Get the columns of a Table  (NK <noc100@yahoo.gr>)
List pgsql-hackers
NK <noc100@yahoo.gr> 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 the column names, once it's matched up the raw parse tree
with information from the system catalogs.
        regards, tom lane


pgsql-hackers by date:

Previous
From: NK
Date:
Subject: Parser Modification Problem: Get the columns of a Table
Next
From: Bruce Momjian
Date:
Subject: Re: 7.4.1 ... slight change of scheduale ...