On Tue, Aug 13, 2024 at 10:54:34AM -0400, Greg Sabino Mullane wrote: > Now that I've spent some time away from this, I'm reconsidering why we are > going through all the trouble of semi-jumbling SET statements. Maybe we > just keep it simple and everything becomes "SET myvar = $1" or even "SET > myvar" full stop?
Showing a dollar-character to show the fact that we have a value behind makes the post sense to me. > I'm having a hard time finding a real-world situation in > which we need to distinguish different SET/RESET items within > pg_stat_statements. I'm -1 on keeping the distinction, and AFAIK it's not really different with the underlying problems that we need to solve for SET TRANSACTION and the kind, no? FWIW, I'm OK with hiding the value when it comes to a SET clause in a CREATE FUNCTION. We already hide the contents of SQL queries inside the SQL functions when these are queries that can be normalized, so there is a kind of thin argument for consistency, or something close to that. -- Michael
signature.asc
Description: PGP signature