Take a look at this Postgres Extension: http://pghintplan.osdn.jp/pg_hint_plan.html
I am even using this with AWS RDS since it comes in the set of default extensions that can be activated.
I am even using this with AWS RDS since it comes in the set of default extensions that can be activated.
I recently put up a PR for a README, you can read it here: https://github.com/ossc-db/pg_hint_plan/blob/8a00e70c387fc07...