Re: pass Form_pg_attribute to examine_attribute rather than Relation structure.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pass Form_pg_attribute to examine_attribute rather than Relation structure.
Дата
Msg-id 19582.1401891983@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pass Form_pg_attribute to examine_attribute rather than Relation structure.  (amul sul <sul_amul@yahoo.co.in>)
Список pgsql-hackers
amul sul <sul_amul@yahoo.co.in> writes:
> For more granularity,�I think passing�Form_pg_attribute to�examine_attribute() function �rather than passing Relation
willbe more relevant & makes it simple to understand.
 

I don't find that to be a good idea at all.  It makes examine_attribute
inconsistent with most other functions in analyze.c, and it limits our
ability to add logic inside that function that might want to look at
other properties of the relation.

Even without that argument, moving the responsibility for initializing
stats->tupattnum to the callers of examine_attribute is certainly a
net loss in readability and reliability.
        regards, tom lane



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_control is missing a field for LOBLKSIZE
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pg_control is missing a field for LOBLKSIZE