Remove HASH_DIRSIZE, always use the default algorithm to select it

It's not very useful to specify a non-standard directory size. The
HASH_DIRSIZE option was only used for shared memory hash tables, and
those always used hash_select_dirsize() to choose the size, which in
turn just uses the default algorithm anyway. That assumption was
ingrained in hash_estimate_size(), too.

Reviewed-by: Tomas Vondra <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4953a25b7f3bb5a555342764231157c76e6acbac

Modified Files
--------------
src/backend/storage/ipc/shmem.c   |  3 +-
src/backend/utils/hash/dynahash.c | 63 ++++++++-------------------------------
src/include/utils/hsearch.h       |  6 +---
3 files changed, 15 insertions(+), 57 deletions(-)

Reply via email to