3 ms·
I think we’re saying the same thing: you can’t force PG to a plan or an index, you can only change your query in hope it gets the hint. Even session scoped fla
by williamdclt 1y ago
I think we’re saying the same thing: you can’t force PG to a plan or an index, you can only change your query in hope it gets the hint.
Even session scoped flags are a really coarse tool, don’t guarantee you’ll get the plan you want and it might unexpectedly impact other queries in the session.
Materialised CTE are one of the only tools that give real control, but an optimisation barrier is often the opposite of what you want