ecpg: add cross-checks to parse.pl for usage of internal tables.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Oct 2024 19:59:13 +0000 (15:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Oct 2024 19:59:29 +0000 (15:59 -0400)
commitd2f41b4621de6d0e9eeaa4ea1d60cad190406f5e
treedca56dfcc3ad318fc3182d7db2f72238a0f94d62
parent66ac94cdc79216e85f4c9e2d445c6f025653668e
ecpg: add cross-checks to parse.pl for usage of internal tables.

parse.pl contains several constant tables that describe tweaks
to be made to the backend grammar.  In the same spirit as
00b0e7204, add cross-checks that each table entry is used at
least once (or exactly once if that's appropriate).  This should
help catch cases where adjustments to the backend grammar cause
a table entry not to match as expected.

Per suggestion from Michael Paquier.

Discussion: https://postgr.es/m/ZsLVbjsc5x5Saesg@paquier.xyz
src/interfaces/ecpg/preproc/parse.pl