Probably it would be appropriate to add a test case. I'll propose something
later.
committed with a test
Thanks!
--
Fabien.
On 10.05.22 15:42, Fabien COELHO wrote:
Hello,
Thanks for the catch and the proposed fix! Indeed, on errors the timing
is not updated appropriately.
ISTM that the best course is to update the elapsed time whenever a
result is obtained, so that a sensible value is always available.
See att
Hello,
Thanks for the catch and the proposed fix! Indeed, on errors the timing is
not updated appropriately.
ISTM that the best course is to update the elapsed time whenever a result
is obtained, so that a sensible value is always available.
See attached patch which is a variant of Richard
On Mon, May 9, 2022 at 11:56 PM Tom Lane wrote:
> Example (you need up-to-the-minute HEAD for this particular test
> case, but anything that runs a little while before failing will do):
>
> regression=# \timing
> Timing is on.
> regression=# select * from generate_series('2022-01-01 00:00'::times
Example (you need up-to-the-minute HEAD for this particular test
case, but anything that runs a little while before failing will do):
regression=# \timing
Timing is on.
regression=# select * from generate_series('2022-01-01 00:00'::timestamptz,
'infinity'::timestamptz,