Re: New "single-call SRF" APIs are very confusingly named
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Melanie Plageman <melanieplageman@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org,
Michael Paquier <michael.paquier@gmail.com>
Date: 2022-10-14T21:32:50Z
Lists: pgsql-hackers
Melanie Plageman <melanieplageman@gmail.com> writes: > So, while I agree that the "Single" in SetSingleFuncCall() could be > confusing given the name of ExprSingleResult, I feel like actually all > of the names are somewhat wrong. Maybe, but ExprSingleResult et al. have been there for decades and are certainly embedded in a ton of third-party code. It's a bit late to rename them, whether you think they're confusing or not. Maybe we can get away with changing names introduced in v15, but even that I'm afraid will get some pushback. Having said that, I'd probably have used names based on "materialize" not "single" for what this code is doing. regards, tom lane
Commits
-
Remove compatibility declarations for InitMaterializedSRF()
- eddc128beac0 16.0 landed
-
Rename SetSingleFuncCall() to InitMaterializedSRF()
- f2f7e509e6a9 15.1 landed
- a19e5cee635d 16.0 landed
-
Create routine able to set single-call SRFs for Materialize mode
- 9e98583898c3 15.0 cited