Remove extra increment of plpgsql's statement counter for FOR loops.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Feb 2021 19:35:12 +0000 (14:35 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Feb 2021 19:35:12 +0000 (14:35 -0500)
commitdfcc46fe3030b0114b7a5715d5fa40819561c04b
tree97552027465818ec7fb0ecbc79ca77712f6a1ead
parent5c0f7cc5442108e113d4fb88c952329b467e2c6a
Remove extra increment of plpgsql's statement counter for FOR loops.

This left gaps in the internal statement numbering, which is not
terribly harmful (else we'd have noticed sooner), but it's not
great either.

Oversight in bbd5c207b; backpatch to v12 where that came in.

Pavel Stehule

Discussion: https://postgr.es/m/CAFj8pRDXyQaJmpotNTQVc-t-WxdWZC35V2PnmwOaV1-taidFWA@mail.gmail.com
src/pl/plpgsql/src/pl_gram.y