Fix MSVC build script's check for obsolete node support functions.
commit9a9f25e217428cdf4119ff08b77f9f5bd45f563c
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Aug 2022 18:43:35 +0000 (8 14:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Aug 2022 18:43:35 +0000 (8 14:43 -0400)
tree8f8b501416e55869aad50fa6fcd846fb0d80c5a1
parent71cac850d02f2ad46aca00d3852574bd48fb581a
Fix MSVC build script's check for obsolete node support functions.

Commit 964d01ae9 was a few bricks shy of a load here: the script
checked whether gen_node_support.pl itself had been updated since it
was last run, but not whether any of its input files had been updated.
Fix that.  While here, scrape the list of input files from the
Makefiles rather than having a duplicate copy, as we do for most
other lists of source files.

In passing, improve gen_node_support.pl's error report for an
incorrect file list.

Per gripe from Amit Kapila.

Discussion: https://postgr.es/m/CAA4eK1KQk4vP-3mTAz26h-PRUZaGu8Fc=q-ZKSajsAthH0A15w@mail.gmail.com
src/backend/nodes/gen_node_support.pl
src/tools/msvc/Solution.pm