pass Form_pg_attribute to examine_attribute rather than Relation structure.

Поиск
Список
Период
Сортировка
Искать
От
amul sul
Тема
pass Form_pg_attribute to examine_attribute rather than Relation structure.
Дата
Msg-id
1401878219.59710.YahooMailNeo@web193501.mail.sg3.yahoo.com
Список
Дерево обсуждения
pass Form_pg_attribute to examine_attribute rather than Relation structure. amul sul <sul_amul@yahoo.co.in>
Re: pass Form_pg_attribute to examine_attribute rather than Relation structure. Tom Lane <tgl@sss.pgh.pa.us>
Hi,

examine_attribute() function accept Relation type argument, and extract attribute from it.

For more granularity, I think passing Form_pg_attribute to examine_attribute() function  rather than passing Relation will be more relevant & makes it simple to understand.

Thinking to change examine_attribute as,

- examine_attribute(Relation onerel, int attnum, Node *index_expr)
+examine_attribute(Form_pg_attribute attr, Node *index_expr)
 

I think there wont any loss or gain except little optimization of function call stack space. 

Thoughts? comments?

Please have look attached patch.

Regards,

Amul Sul
В списке pgsql-hackers по дате отправления
От: David Rowley
Дата:
От: Abhijit Menon-Sen
Дата:
Сообщение: pg_xlogdump --stats
FAQ