From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Walter Cai <wzcai92(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | |
Date: | 2018-01-09 22:05:49 |
Message-ID: | 13574.1515535549@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Walter Cai <wzcai92(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2018-01-09 22:12:17 | Re: [HACKERS] Removing useless DISTINCT clauses |
Previous Message | Tom Lane | 2018-01-09 22:01:20 | Re: [HACKERS] pgbench more operators & functions |