| From: | Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com> |
|---|---|
| To: | Clemens Eisserer <linuxhippy(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Why is wal_writer_delay limited to 10s? |
| Date: | 2014-02-02 07:32:22 |
| Message-ID: | CAEYLb_U2s-Ow2RFe3+nrPB-5_dNeDH7xPxhMDcPzWm1afo_B=w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Sat, Feb 1, 2014 at 10:49 PM, Clemens Eisserer <linuxhippy(at)gmail(dot)com> wrote:
> My question on the list was merely to make sure there are no
> side-effects when increasing this delay above what seems to be
> considered safe limits. However, I still wonder why this parameter is
> capped to 10s and whether this restriction could be lifted in future
> postgresql versions?
I don't think there's any practical reason, other than that it was
assumed that increasing it further was not useful. There is perhaps a
tendency to set GUC limits as high as seems reasonable without
consider niche use-cases such as yours. If you want to hack it to go
higher it should be fine, provided that WalWriterDelay *
HIBERNATE_FACTOR cannot ever overflow a 32-bit signed integer. But
since those are milliseconds and not microseconds, it seems pretty
safe. This applies to 9.2+ only. I didn't check what things look like
back when the delay was passed to pg_usleep(), which was the case in
9.1.
--
Regards,
Peter Geoghegan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vik Fearing | 2014-02-02 08:36:49 | Re: [HACKERS] Insert result does not match record count |
| Previous Message | Clemens Eisserer | 2014-02-02 06:49:55 | Re: Why is wal_writer_delay limited to 10s? |