Re: HOT patch, missing things

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: HOT patch, missing things
Дата
Msg-id 18229.1187100477@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: HOT patch, missing things  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Список pgsql-hackers
"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> I am trying to figure out the best way to extract this information. Is there
> any
> existing code to get all attributes used in the expressions ? Or do I need
> to walk the tree and extract that information ?

There are a number of near matches in backend/optimizer/util/var.c,
but nothing that has exactly the API you probably want, which I'd think
would be to extract a bitmapset of the varattnos of level-zero Vars.
contain_var_reference() could be used repeatedly but that seems
tremendously inefficient.  I'd suggest coding up some new function
using what's there for reference.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Testing the async-commit patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: HOT patch, missing things