RE: WAL settings

From: Stephen Froehlich <s(dot)froehlich(at)cablelabs(dot)com>
To: J B <mrjanbernat(at)gmail(dot)com>
Cc: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>, "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: RE: WAL settings
Date: 2018-02-14 21:59:37
Message-ID: CY1PR0601MB1927BF54877C2DF5C04D1967E5F50@CY1PR0601MB1927.namprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

No worries … we’ve all been there. Thankfully for Postgres there is pretty much just the one log file.

Postgres has a nice habit of giving (often very) helpful error message-based hints in the log file. It helped me more than a little in my learning curve.

--Stephen

From: J B [mailto:mrjanbernat(at)gmail(dot)com]
Sent: Wednesday, February 14, 2018 2:57 PM
To: Stephen Froehlich <s(dot)froehlich(at)cablelabs(dot)com>
Cc: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>; pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: RE: WAL settings

I was not able to google out the proper log file to look into,ill try it next time,thank you

Dne 14. 2. 2018 10:51 odpoledne napsal uživatel "Stephen Froehlich" <s(dot)froehlich(at)cablelabs(dot)com<mailto:s(dot)froehlich(at)cablelabs(dot)com>>:
10 is the default value, as is wal_level = “replica”.

By the way, if you had checked your postgresql-10-main.log after you sent the reload command (always a good idea), it gives exactly this hint as I remember.

--Stephen

From: J B [mailto:mrjanbernat(at)gmail(dot)com<mailto:mrjanbernat(at)gmail(dot)com>]
Sent: Wednesday, February 14, 2018 8:10 AM
To: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de<mailto:andreas(at)a-kretschmer(dot)de>>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org<mailto:pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: WAL settings

Wow thank you, i checked that this was commented out in 9.4 but with setting = 0, but 10.1 has this commented with = 10 so i assume its default value.

2018-02-14 13:50 GMT+01:00 Andreas Kretschmer <andreas(at)a-kretschmer(dot)de<mailto:andreas(at)a-kretschmer(dot)de>>:

Am 14.02.2018 um 13:33 schrieb J B:
Hello

I have an issue with WAL settings with postgress 10.1 used for zabbix monitoring system. When i change WAL setting to "minimal" the database goes down. We used this setting in version 9.4 to improve performance of our monitoring server so i would like to replicate this setting.

you have to set max_wal_senders to 0.

Regards, Andreas

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com<http://www.2ndQuadrant.com>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Laurenz Albe 2018-02-15 06:00:02 Re: Bitmap Heap Scan taking ~60x as long for table when queried as partition
Previous Message J B 2018-02-14 21:57:02 RE: WAL settings