- Архив списков рассылки pgsql-hackers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема
Дата
Msg-id 13574.1515535549@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re:  (Walter Cai <wzcai92@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] pgbench more operators & functions
Следующее
От: David Rowley
Дата:
Сообщение: Re: [HACKERS] Removing useless DISTINCT clauses