| От | Tom Lane |
|---|---|
| Тема | Re: fix_PGSTAT_NUM_TABENTRIES_macro patch |
| Дата | |
| Msg-id | 28374.1388514339@sss.pgh.pa.us обсуждение |
| Ответ на | Re: fix_PGSTAT_NUM_TABENTRIES_macro patch (Mark Dilger <markdilger@yahoo.com>) |
| Ответы |
Re: fix_PGSTAT_NUM_TABENTRIES_macro patch
|
| Список | pgsql-hackers |
Mark Dilger <markdilger@yahoo.com> writes:
> I don't care for the places in the code that say things like
> ��� foo - sizeof(int)
> where "int" refers implicitly to a specific variable or struct field, but
> you have to remember that and change it by hand if you change the
> type of the variable or struct.
> But this sort of code is quite common in postgres, and not
> at all unique to src/include/pgstat.h.
Really? I think we're using offsetof for this type of thing in most
places.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера