Re: Remove unnecessary code from psql's watch command

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove unnecessary code from psql's watch command
Дата
Msg-id 859741.1709917752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove unnecessary code from psql's watch command  (Yugo NAGATA <nagata@sraoss.co.jp>)
Ответы Re: Remove unnecessary code from psql's watch command  (Yugo NAGATA <nagata@sraoss.co.jp>)
Список pgsql-hackers
Yugo NAGATA <nagata@sraoss.co.jp> writes:
> On Wed, 06 Mar 2024 13:03:39 -0500
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I don't have Windows here to test on, but does the WIN32 code
>> path work at all?

> The outer loop is eventually exited even because PSQLexecWatch returns 0
> when cancel_pressed = 0. However, it happens after executing an extra
> query in this function not just after exit of the inner loop. Therefore,
> it would be better to adding set and check of "done" in WIN32, too.

Ah, I see now.  Agreed, that could stand improvement.

> I've attached the updated patch (v2_remove_unnecessary_code_in_psql_watch.patch).

Pushed with minor tidying.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Call perror on popen failure
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Introduce XID age and inactive timeout based replication slot invalidation