Re: psql \watch 2nd argument: iteration count

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: psql \watch 2nd argument: iteration count
Дата
Msg-id 20230309192526.GA3703231@nathanxps13
обсуждение исходный текст
Ответ на Re: psql \watch 2nd argument: iteration count  (Andrey Borodin <amborodin86@gmail.com>)
Ответы Re: psql \watch 2nd argument: iteration count  (Andrey Borodin <amborodin86@gmail.com>)
Список pgsql-hackers
+                pg_log_error("Watch period must be non-negative number, but argument is '%s'", opt);

After looking around at the other error messages in this file, I think we
should make this more concise.  Maybe something like

    pg_log_error("\\watch: invalid delay interval: %s", opt);

+                free(opt);
+                resetPQExpBuffer(query_buf);
+                return PSQL_CMD_ERROR;

Is this missing psql_scan_reset(scan_state)?

I haven't had a chance to look closely at 0002 yet.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Add standard collation UNICODE
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?)