Re: ISN extension - wrong volatility level for isn_weak() function
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Viktor Holmberg <v@viktorh.net>
Cc: Daniel Gustafsson <daniel@yesql.se>, pgsql-bugs@lists.postgresql.org
Date: 2025-03-14T16:18:42Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
contrib/isn: Make weak mode a GUC setting, and fix related functions.
- 44890442398c 18.0 landed
-
Update contrib/seg for new scalarlesel/scalargesel selectivity functions.
- 44ba29206449 11.0 cited
Viktor Holmberg <v@viktorh.net> writes: > However, cleaning things up to use GUC seems like it’d be bigger task, and also would only be an extra thing, as isn_weak function would need to stay in for backwards compatibility I assume. Wouldn't be a big deal --- yes, accept_weak_input would need a bit of modification, but it's not much. The main reason I suggested it was that a GUC would be subject to RESET ALL and so it'd fix the pooler hazard you pointed out. > In terms of just fixing the immediate bug, I believe it’d just be to change isn.sql line 3423 and 2433: No, we'd need to create an update script that uses ALTER FUNCTION. Extension scripts are basically frozen once shipped. regards, tom lane