Hello
I would like to continue discussion regarding changing calling
convention for ShmemInitHash procedure:
http://www.postgresql.org/message-id/CA+TgmoZm=Uowt8a_XaSfooGwufeeLJ861NTADiCEOpyFehV8Wg@mail.gmail.com
Currently this procedure has two arguments --- init_size and max_size.
But since shared hash tables have fixed size there is little sense to
pass two arguments. In fact currently ShmemInitHash is always called
with init_size == max_size with only one exception, InitLocks procedure
(see lock.c), which I believe is actually a bug.
Patch is attached.
What do you think?
--
Best regards,
Aleksander Alekseev
http://eax.me/