Thread
Commits
-
docs: clarify bgw_restart_time documentation
- b96c1a23dc97 9.6.24 landed
- 7c8f2c77108d 10.19 landed
- 652804ebde82 14.0 landed
- 53597fd6c3cc 13.5 landed
- 38ed1566ee34 12.9 landed
- 10d2695b0cba 15.0 landed
- 05fec0b74fac 11.14 landed
-
Background worker docs,
Dave Cramer <davecramer@gmail.com> — 2021-08-27T13:17:28Z
Why is the last comma there ? "bgw_restart_time is the interval, in seconds, that postgres should wait before restarting the process, in case it crashes." diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml index d34acfc220..6f13006e25 100644 --- a/doc/src/sgml/bgworker.sgml +++ b/doc/src/sgml/bgworker.sgml @@ -130,7 +130,7 @@ typedef struct BackgroundWorker <para> <structfield>bgw_restart_time</structfield> is the interval, in seconds, that - <command>postgres</command> should wait before restarting the process, in + <command>postgres</command> should wait before restarting the process in case it crashes. It can be any positive value, or <literal>BGW_NEVER_RESTART</literal>, indicating not to restart the process in case of a crash. Dave Cramer -
Re: Background worker docs,
Daniel Gustafsson <daniel@yesql.se> — 2021-08-27T13:24:18Z
> On 27 Aug 2021, at 15:17, Dave Cramer <davecramer@gmail.com> wrote: > > Why is the last comma there ? > > "bgw_restart_time is the interval, in seconds, that postgres should wait before restarting the process, in case it crashes." > - <command>postgres</command> should wait before restarting the process, in > + <command>postgres</command> should wait before restarting the process in While not being an native english speaker, I agree that this reads better. -- Daniel Gustafsson https://vmware.com/
-
Re: Background worker docs,
Dave Cramer <davecramer@gmail.com> — 2021-08-27T13:26:52Z
On Fri, 27 Aug 2021 at 09:24, Daniel Gustafsson <daniel@yesql.se> wrote: > > On 27 Aug 2021, at 15:17, Dave Cramer <davecramer@gmail.com> wrote: > > > > Why is the last comma there ? > > > > "bgw_restart_time is the interval, in seconds, that postgres should wait > before restarting the process, in case it crashes." > > > - <command>postgres</command> should wait before restarting the > process, in > > + <command>postgres</command> should wait before restarting the > process in > > While not being an native english speaker, I agree that this reads better. > As a native English speaker, I was left wondering what else the timeout would be used for. Dave Cramer
-
Re: Background worker docs,
Tom Lane <tgl@sss.pgh.pa.us> — 2021-08-27T13:50:45Z
Dave Cramer <davecramer@gmail.com> writes: >> - <command>postgres</command> should wait before restarting the >> process, in >> + <command>postgres</command> should wait before restarting the >> process in > As a native English speaker, I was left wondering what else the timeout > would be used for. Maybe s/in case/if/ ? Or s/in case/after/ ? It does seem like this sentence needs more help than just comma-removal. regards, tom lane
-
Re: Background worker docs,
Dave Cramer <davecramer@gmail.com> — 2021-08-27T13:52:50Z
On Fri, 27 Aug 2021 at 09:50, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Dave Cramer <davecramer@gmail.com> writes: > >> - <command>postgres</command> should wait before restarting the > >> process, in > >> + <command>postgres</command> should wait before restarting the > >> process in > > > As a native English speaker, I was left wondering what else the timeout > > would be used for. > > Maybe s/in case/if/ ? Or s/in case/after/ ? It does seem like this > sentence needs more help than just comma-removal. > In my mind "in the event that it crashes" made it clear > > regards, tom lane >
-
Re: Background worker docs,
Daniel Gustafsson <daniel@yesql.se> — 2021-08-27T13:57:50Z
> On 27 Aug 2021, at 15:52, Dave Cramer <davecramer@gmail.com> wrote: > On Fri, 27 Aug 2021 at 09:50, Tom Lane <tgl@sss.pgh.pa.us <mailto:tgl@sss.pgh.pa.us>> wrote: > Maybe s/in case/if/ ? Or s/in case/after/ ? It does seem like this > sentence needs more help than just comma-removal. > > In my mind "in the event that it crashes" made it clear That, or “if it crashes” gets my vote. -- Daniel Gustafsson https://vmware.com/
-
Re: Background worker docs,
Tom Lane <tgl@sss.pgh.pa.us> — 2021-08-27T14:15:46Z
Daniel Gustafsson <daniel@yesql.se> writes: > On 27 Aug 2021, at 15:52, Dave Cramer <davecramer@gmail.com> wrote: >> In my mind "in the event that it crashes" made it clear > That, or “if it crashes” gets my vote. Dave's wording sounds good to me. regards, tom lane
-
Re: Background worker docs,
Dave Cramer <davecramer@gmail.com> — 2021-08-27T14:20:23Z
On Fri, 27 Aug 2021 at 10:15, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Daniel Gustafsson <daniel@yesql.se> writes: > > On 27 Aug 2021, at 15:52, Dave Cramer <davecramer@gmail.com> wrote: > >> In my mind "in the event that it crashes" made it clear > > > That, or “if it crashes” gets my vote. > > Dave's wording sounds good to me. > > regards, tom lane > > revised diff
-
Re: Background worker docs,
Daniel Gustafsson <daniel@yesql.se> — 2021-08-27T14:22:09Z
> On 27 Aug 2021, at 16:15, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Daniel Gustafsson <daniel@yesql.se> writes: >> On 27 Aug 2021, at 15:52, Dave Cramer <davecramer@gmail.com> wrote: >>> In my mind "in the event that it crashes" made it clear > >> That, or “if it crashes” gets my vote. > > Dave's wording sounds good to me. I can go make that happen, backpatched down to 9.6 AFAICT on a quick skim, unless you’re already on it. -- Daniel Gustafsson https://vmware.com/
-
Re: Background worker docs,
Tom Lane <tgl@sss.pgh.pa.us> — 2021-08-27T14:31:34Z
Daniel Gustafsson <daniel@yesql.se> writes: > On 27 Aug 2021, at 16:15, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Dave's wording sounds good to me. > I can go make that happen, backpatched down to 9.6 AFAICT on a quick skim, > unless you’re already on it. Feel free, I've got other stuff on my plate right now. regards, tom lane
-
Re: Background worker docs,
Daniel Gustafsson <daniel@yesql.se> — 2021-08-27T21:14:41Z
> On 27 Aug 2021, at 16:31, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Daniel Gustafsson <daniel@yesql.se> writes: >> On 27 Aug 2021, at 16:15, Tom Lane <tgl@sss.pgh.pa.us> wrote: >>> Dave's wording sounds good to me. > >> I can go make that happen, backpatched down to 9.6 AFAICT on a quick skim, >> unless you’re already on it. > > Feel free, I've got other stuff on my plate right now. And done, thanks. -- Daniel Gustafsson https://vmware.com/