Re: psql \watch 2nd argument: iteration count

From: Andrey Borodin <amborodin86(at)gmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql \watch 2nd argument: iteration count
Date: 2023-02-20 18:45:53
Message-ID: CAAhFRxjqiW_2C_FRAgHTArAAQckMfEebXs3ko61O_THQd5PZxA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > Also, if we do not provide a timespan, 2 seconds are selected. But if
> > > we provide an incorrect argument - 1 second is selected.
> > > PFA the patch that adds iteration count argument and makes timespan
> > > argument more consistent.
> >
> > That should probably be fixed.
>
> And should probably be independent patches.
>

PFA 2 independent patches.

Also, I've fixed a place to break after an iteration. Now if we have
e.g. 2 iterations - there will be only 1 sleep time.

Thanks!

Best regards, Andrey Borodin.

Attachment Content-Type Size
v2-0001-Fix-incorrect-argument-handling-in-psql-watch.patch application/octet-stream 1.1 KB
v2-0001-Add-iteration-count-argument-to-psql-watch-comman.patch application/octet-stream 4.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2023-02-20 18:52:16 Missing cases from SPI_result_code_string()
Previous Message Peter Eisentraut 2023-02-20 18:43:56 Re: meson: Optionally disable installation of test modules