pgsql: Check for correct version of perltidy

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Check for correct version of perltidy
Date: 2025-11-26 20:36:06
Message-ID: E1vOMFC-001Y7B-0o@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Check for correct version of perltidy

pgperltidy requires a particular version of perltidy, but the version
wasn't checked like how pgindent checks the underlying indent binary.
Fix by checking the version of perltidy and error out if an incorrect
version is used.

Author: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reported-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Reviewed-by: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Andrew Dunstan <andrew(at)dunslane(dot)net>
Discussion: https://postgr.es/m/1209850.1764092152@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1cdb84bb1bcd6de4abcb5b2137f57c6c7463f4ab

Modified Files
--------------
src/tools/pgindent/pgperltidy | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2025-11-26 20:56:47 pgsql: Allow pg_locale_t APIs to work when ctype_is_c.
Previous Message Jeff Davis 2025-11-26 18:08:35 pgsql: Inline pg_ascii_tolower() and pg_ascii_toupper().