IndexTupleDSize macro seems redundant

Поиск
Список
Период
Сортировка
От Ildar Musin
Тема IndexTupleDSize macro seems redundant
Дата
Msg-id 0274288e-9e88-13b6-c61c-7b36928bf221@postgrespro.ru
обсуждение исходный текст
Ответы Re: IndexTupleDSize macro seems redundant
Список pgsql-hackers
Hi all,

While I was looking through the indexes code I got confused by couple of 
macros - IndexTupleSize() and IndexTupleDSize() - which seem to do the 
same thing with only difference that the first one takes pointer as an 
argument while the second one takes struct. And in most cases 
IndexTupleDSize() is used with dereferencing of index tuple where 
IndexTupleSize() would suit perfectly. Is there a particular reason to 
have them both? I've made a patch that removes IndexTupleDSize macro. 
All the tests have passed.

-- 
Ildar Musin
i.musin@postgrespro.ru

Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: [HACKERS] Custom compression methods
Следующее
От: Евгений Шишкин
Дата:
Сообщение: Re: [HACKERS] Custom compression methods