I’m fairly sure those are specific to PG 12 (Oban is 9.6+), and they are global settings. It would be amazing to force a particular plan when preparing the query itself. Maybe it’ll get there one day.
I ended up going with the hack I mentioned in the first post. It doesn’t look too bad, and the performance is as good or better: Avoid prepared statements for all unique queries · oban-bg/oban@756bb4f · GitHub






















