top | item 39724664

(no title)

th3iedkid | 1 year ago

Isn’t hinting more like asking nicely than forcing the engine to choose the other way?

discuss

order

FritsHoogland|1 year ago

It's a bit of both. What pg_hint_plan does is change the cost to favour the hinted suggestion. If hinted suggestion is impossible, the planner will still perform something else.

FritsHoogland|1 year ago

But if 'force' means changing what it would do otherwise, where 'otherwise' is: a different plan having the lowest cost, the: yes that is exactly what it does.

justinclift|1 year ago

Yeah, I probably could have used better wording for the title submission.

The GitHub repo's wording is broken english currently though which is (probably?) worse.

ioltas|1 year ago

I’ll try to do something about that tomorrow, saw your ticket.

pm90|1 year ago

you can’t really do the latter.