Re: Parser Modification Problem: Get the columns of a Table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: NK <noc100(at)yahoo(dot)gr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Parser Modification Problem: Get the columns of a Table
Date: 2003-12-07 20:10:34
Message-ID: 24004.1070827834@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

=?iso-8859-7?q?NK?= <noc100(at)yahoo(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-07 21:16:11 Re: autovacuum daemon stops doing work after about an
Previous Message NK 2003-12-07 19:25:06 Parser Modification Problem: Get the columns of a Table