| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера