Shared-memory hashtables have non-extensible directories, which means
Tom Lane <tgl@sss.pgh.pa.us>
Shared-memory hashtables have non-extensible directories, which means it's a good idea to choose the directory size based on the expected number of entries. But ShmemInitHash was using a hard-wired constant. Boo hiss. This accounts for recent report of postmaster failure when asking for 64K or more buffers.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/shmem.c | modified | +9 −7 |
| src/backend/utils/hash/dynahash.c | modified | +30 −5 |
| src/include/utils/hsearch.h | modified | +14 −13 |