]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Make ParseVariableDouble reject values above max
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 18 May 2026 15:33:36 +0000 (08:33 -0700)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 18 May 2026 15:33:36 +0000 (08:33 -0700)
commite04910a9a2a3f20c8139efd4fa4a6cdf00f3d3bd
treed6a507bab31689c0164dccb933e438172e6a9fef
parentaa7eb23aca31dbf0263e32c4fbf85ad824a642df
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 <sven@tigerdata.com>
Co-authored-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAMCrgp31p_5SDVi7dwnP39tTW5icQ0MWHA+N4kJdXgkL0PEy8w@mail.gmail.com
Backpatch-through: 18
src/bin/psql/t/001_basic.pl
src/bin/psql/variables.c