]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:25 +0000 (14:35 -0500)
commit78fab843386bbaaaa4f74b26859d669e89d7db63
tree962fc77aec0e9f04d63b10d33975f05ea24f4e24
parent7428469586e837747f86566c790f6ccceac1b1f3
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