Re: Postgres Parameters
| От | Sam Stearns |
|---|---|
| Тема | Re: Postgres Parameters |
| Дата | |
| Msg-id | CAN6TVjmO7Tqd1RKqcjrD2LFFcrmSThx+CNuhjWKNHSGO6HVNEQ@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Postgres Parameters (Fabrice Chapuis <fabrice636861@gmail.com>) |
| Список | pgsql-admin |
Awesome stuff. Thank you, everyone!
Sam
On Tue, Nov 11, 2025 at 3:19 AM Fabrice Chapuis <fabrice636861@gmail.com> wrote:
Hi, You could also use this query, if the ratio is low, that means there is no pressure on wal size and you can keep the max_wal_size value as it is. SELECT num_timed, num_requested, round((num_requested: : numeric / NULLIF(num_timed + num_requested,ZjQcmQRYFpfptBannerStartThis Message Is From an Untrusted SenderYou have not previously corresponded with this sender.ZjQcmQRYFpfptBannerEndHi,You could also use this query, if the ratio is low, that means there is no pressure on wal size and you can keep the max_wal_size value as it is.SELECTnum_timed,num_requested,round((num_requested::numeric / NULLIF(num_timed + num_requested, 0)) * 100, 2)AS requested_pctFROM pg_stat_checkpointer;+-----------+---------------+---------------+| num_timed | num_requested | requested_pct |+-----------+---------------+---------------+| 3502 | 146 | 4.00 |+-----------+---------------+---------------+(1 row)Regards,FabriceOn Tue, Nov 11, 2025 at 12:28 AM Sam Stearns <sam.stearns@dat.com> wrote:
В списке pgsql-admin по дате отправления: