public inbox for [email protected]  
help / color / mirror / Atom feed
pgsql: psql: Make ParseVariableDouble reject values above max
2+ messages / 1 participants
[nested] [flat]

* pgsql: psql: Make ParseVariableDouble reject values above max
@ 2026-05-18 15:38 Daniel Gustafsson <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Daniel Gustafsson @ 2026-05-18 15:38 UTC (permalink / raw)
  To: [email protected]

psql: Make ParseVariableDouble reject values above max

ParseVariableDouble missed returning false after logging an error when
the parsed value exceeded max, making the value assigned rather than
rejected.  Backpatch down to v18 where this was introduced as part of
the \WATCH_INTERVAL.

Author: Sven Klemm <[email protected]>
Co-authored-by: Daniel Gustafsson <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/CAMCrgp31p_5SDVi7dwnP39tTW5icQ0MWHA+N4kJdXgkL0PEy8w@mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e04910a9a2a3f20c8139efd4fa4a6cdf00f3d3bd

Modified Files
--------------
src/bin/psql/t/001_basic.pl | 2 ++
src/bin/psql/variables.c    | 1 +
2 files changed, 3 insertions(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: psql: Make ParseVariableDouble reject values above max
@ 2026-05-18 15:38 Daniel Gustafsson <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Daniel Gustafsson @ 2026-05-18 15:38 UTC (permalink / raw)
  To: [email protected]

psql: Make ParseVariableDouble reject values above max

ParseVariableDouble missed returning false after logging an error when
the parsed value exceeded max, making the value assigned rather than
rejected.  Backpatch down to v18 where this was introduced as part of
the \WATCH_INTERVAL.

Author: Sven Klemm <[email protected]>
Co-authored-by: Daniel Gustafsson <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/CAMCrgp31p_5SDVi7dwnP39tTW5icQ0MWHA+N4kJdXgkL0PEy8w@mail.gmail.com
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e0c641ebbf0aab219bbe5fe0ed2be4d937f1fea1

Modified Files
--------------
src/bin/psql/t/001_basic.pl | 2 ++
src/bin/psql/variables.c    | 1 +
2 files changed, 3 insertions(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-05-18 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-05-18 15:38 pgsql: psql: Make ParseVariableDouble reject values above max Daniel Gustafsson <[email protected]>
2026-05-18 15:38 pgsql: psql: Make ParseVariableDouble reject values above max Daniel Gustafsson <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox