Re: Surely this code in setrefs.c is wrong?
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-09-13T23:57:11Z
Lists: pgsql-hackers
On Sun, 10 Sept 2023 at 21:07, David Rowley <dgrowleyml@gmail.com> wrote: > > On Sun, 10 Sept 2023 at 11:22, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > if (!OidIsValid(saop->hashfuncid)) > > record_plan_function_dependency(root, saop->hashfuncid); > > > > if (!OidIsValid(saop->negfuncid)) > > record_plan_function_dependency(root, saop->negfuncid); > > > > Surely those if-conditions are exactly backward, and we should be > > recording nonzero hashfuncid and negfuncid entries, not zero ones. > > I'll push fixes once the 16.0 release is out of the way. Fixed in ee3a551e9. David
Commits
-
Fix incorrect logic in plan dependency recording
- 6341cb0b02ae 14.10 landed
- ee3a551e96c4 17.0 landed
- 1a6900e58ae2 16.1 landed
- 17a3f1c3475a 15.5 landed