There is the pg_hint_plan extension that gives most of what you would want in a hinting system.
I think a better fix lies in the direction of making queries more of a first class object with options to nail down plans, add custom logic to pick plans dependent on parameter values, etc.