Re: Converting SetOp to read its two inputs separately
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2024-12-19T22:23:06Z
Lists: pgsql-hackers
Attachments
- v1-0001-Get-rid-of-old-version-of-BuildTupleHashTable.patch (text/x-diff) patch v1-0001
Pushed ... and now I have one more beef about the way things are in this area. I don't think we should leave the compatibility function BuildTupleHashTable() in place in HEAD. Making it a wrapper around a new function BuildTupleHashTableExt() was a fine solution for preserving ABI in released branches, but that doesn't mean we should clutter the code with unused ABI hacks forevermore. Attached is a patch to take it out and then rename BuildTupleHashTableExt() back to BuildTupleHashTable(). Since BuildTupleHashTableExt has already grown more arguments in HEAD than it had in v17, renaming it doesn't increase the number of places that will have to be touched in any extensions that were using this infrastructure. Removal of the compatibility wrapper could force some code updates, but really we want those places to update anyway. I also made an effort at fixing the woefully out of date header comment for it. regards, tom lane
Commits
-
Get rid of old version of BuildTupleHashTable().
- e0a2721f7c16 18.0 landed
-
Use ExecGetCommonSlotOps infrastructure in more places.
- f0b900086a37 18.0 landed
-
Improve planner's handling of SetOp plans.
- 8d96f57d5cc7 18.0 landed
-
Convert SetOp to read its inputs as outerPlan and innerPlan.
- 27627929528e 18.0 landed
-
Fix typo in header comment for set_operation_ordered_results_useful
- b6612aedc53a 18.0 landed
-
Allow planner to use Merge Append to efficiently implement UNION
- 66c0185a3d14 17.0 cited