- Mailing list pgsql-hackers

From Tom Lane
Subject
Date
Msg-id 13574.1515535549@sss.pgh.pa.us
Whole thread Raw
In response to Re:  (Walter Cai <wzcai92@gmail.com>)
List pgsql-hackers
Walter Cai <wzcai92@gmail.com> writes:
> Sorry about not including a title at first, I completely forgot!
> And thanks for the help, Tom. With respect to the Var: I'm really just
> hoping to access the column name

Well, you could look that up from the catalogs, or maybe better pull
it out of the alias list for the Var's corresponding RTE, but I wonder
why C code would take any interest in the column name?  Just about
everything is more usefully dealt with in terms of column numbers
(varattno) --- certainly, anything you might want to look up in
pg_statistic or suchlike places is going to be indexed by number not name.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] pgbench more operators & functions
Next
From: David Rowley
Date:
Subject: Re: [HACKERS] Removing useless DISTINCT clauses