Re: psql \watch 2nd argument: iteration count - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: psql \watch 2nd argument: iteration count
Date
Msg-id 20230309192526.GA3703231@nathanxps13
Whole thread Raw
In response to Re: psql \watch 2nd argument: iteration count  (Andrey Borodin <amborodin86@gmail.com>)
Responses Re: psql \watch 2nd argument: iteration count
List 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 by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Add standard collation UNICODE
Next
From: Andres Freund
Date:
Subject: Re: pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?)