Re: [ADMIN] shared_buffers and shmmax - Mailing list pgsql-docs

From Tom Lane
Subject Re: [ADMIN] shared_buffers and shmmax
Date
Msg-id 17528.1229470697@sss.pgh.pa.us
Whole thread Raw
In response to Re: [ADMIN] shared_buffers and shmmax  (Bruce Momjian <bruce@momjian.us>)
Responses Re: [ADMIN] shared_buffers and shmmax  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
Bruce Momjian <bruce@momjian.us> writes:
> OK, updated patch.  I added item descriptions and removed Alvaro's
> paragraph;  I worked with Alvaro on this patch.

This still seems pretty misleading, as for example

>        <tbody>
>         <row>
>          <entry><xref linkend="guc-max-connections"></>
> !        <entry>1800 + 270 * <xref
> !        linkend="guc-max-locks-per-transaction"> bytes per connection</entry>
>         </row>

sounds like it might mean bytes per *active* connection, when of course
the correct way to figure it is by multiplying by max_connections.
If you're going to give a formula, why not just give a formula, eg

    (1800 + 270 * max_locks_per_transaction) * (max_connections + autovacuum_max_workers)

            regards, tom lane

pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [ADMIN] shared_buffers and shmmax
Next
From: Bruce Momjian
Date:
Subject: Re: [ADMIN] shared_buffers and shmmax