Re:Show HN: PostgreSQL Index Advisor
by krembo on Sunday April 14, 2024 @04:15PM
(#40034071)
I'd strongly oppose setting the max parallel workers on session level just to bypass an execution plab. I stead understand the logic why pg behave the way it is, and change the query accordingly
[ Parent
| on HN ]
Re:Show HN: PostgreSQL Index Advisor
by jaggederest on Sunday April 14, 2024 @06:09PM
(#40034916)
Yeah you can file a patch with postgres and get it into the next point release or something but in the mean time you really want to keep that query from OOMing your database :)
I understand why it’s making the choice it’s making, I’m at a loss for how to convince it to make the choice I consider optimal. Given the available statistics knobs, it seems like my options are [actionable suggestions like the parent and the other helpful commenters], redesign the schema (lots of work), or pick another database (also lots of work but perhaps less than redesigning the schema only to hit a similar problem again).