One more example of generating time series

2020-11-11 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/13/functions-srf.html Description: I find this kind of query very useful: If you don't know the end date, but you know how many time steps to add, you can use a query like this select now()+

Documentation of return values of range functions lower and upper

2020-11-11 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/13/functions-range.html Description: Table 9.54 in page https://www.postgresql.org/docs/current/functions-range.html states that the functions lower and upper return NULL if the requested bou

Re: What does "[backends] should seldom or never need to wait for a write to occur" mean?

2020-11-11 Thread Chris Wilson
Hi Bruce, Thanks, but I think it's more ambiguous than that. I was trying to discover how the bgwriter works in order to tune it successfully (to identify the correct tuning objectives). It's not documented anywhere else in the official docs that I can find, so this is the canonical place to learn

Re: Documentation of return values of range functions lower and upper

2020-11-11 Thread Laurenz Albe
On Wed, 2020-11-11 at 09:25 +, PG Doc comments form wrote: > Table 9.54 in page > https://www.postgresql.org/docs/current/functions-range.html states that the > functions lower and upper return NULL if the requested bound is infinite. If > the element type of the range contains the special valu

Re: Addition to content

2020-11-11 Thread Bruce Momjian
On Mon, Nov 9, 2020 at 11:09:59AM -0500, Tom Lane wrote: > PG Doc comments form writes: > > I would be helpful to add that NULLIF and COALESCE need to be of same data > > type. > > That's not actually a correct statement ... which I guess just reinforces > your point that the behavior needs to

Re: What does "[backends] should seldom or never need to wait for a write to occur" mean?

2020-11-11 Thread Bruce Momjian
On Wed, Nov 11, 2020 at 11:29:09AM +, Chris Wilson wrote: > I still believe that my original proposed change, to "This reduces the chances > that a backend needing an empty buffer must [itself] write a dirty one back to > disk before evicting it" (with one extra word added), resolves the ambigu