Re:Sort improvements in PostgreSQL since 1997 [pdf]
by anarazel on Friday February 19, 2016 @03:22AM
(#11132329)
> I think it would be more accurate to say that (AFAICT) Postgres doesn't currently have any way to extend the optimizer with custom plans (though it's been a very popular feature suggestion).
There's http://www.postgresql.org/docs/devel/static/custom-scan.html