Re: [HACKERS] oddity in initdb probing of max_connections/shared_buffers

2016-07-04 Thread Tom Lane
Greg Stark writes: > I happened to notice a bit of an inconsistency in the way initdb > probes max_connections and shared_buffers. > This line in the shared_buffers test: > /* Use same amount of memory, independent of BLCKSZ */ > test_buffs = (trial_bufs[i] * 8192) / BLCKSZ; > has no equivalent

[HACKERS] oddity in initdb probing of max_connections/shared_buffers

2016-07-04 Thread Greg Stark
I happened to notice a bit of an inconsistency in the way initdb probes max_connections and shared_buffers. This line in the shared_buffers test: /* Use same amount of memory, independent of BLCKSZ */ test_buffs = (trial_bufs[i] * 8192) / BLCKSZ; has no equivalent in the max_connections test. As