move hash_any to utils/hash/hashfn.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема move hash_any to utils/hash/hashfn.c
Дата
Msg-id 201901251935.ser5e4h6djt2@alvherre.pgsql
обсуждение исходный текст
Ответы Re: move hash_any to utils/hash/hashfn.c  (Andres Freund <andres@anarazel.de>)
Re: move hash_any to utils/hash/hashfn.c  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
I just noticed (once again) that we have hash_any() declared in
src/access/hash.h (the header file for the hash index AM) rather than
somewhere in utils/, for no good reason other than perhaps there was no
better place when it was introduced.  This means that some files that
seem to just need hash_any end up pointlessly #including the whole AM
world upon themselves.

Would anybody object too hard if I move hash_any() and friends to
src/backend/utils/hash/hashfn.c and the declarations to
src/include/utils/hashutils.h?


-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: 'Bruce Momjian'
Дата:
Сообщение: Re: Protect syscache from bloating with negative cache entries
Следующее
От: Andres Freund
Дата:
Сообщение: Re: move hash_any to utils/hash/hashfn.c