postgres_fdw: When sending ORDER BY, always include NULLS FIRST/LAST.

Robert Haas <rhaas@postgresql.org>

Commit: 3bea3f88d5fc3517042ba83d2906979256da2442
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-03-04T16:37:42Z
Releases: 9.6.0
postgres_fdw: When sending ORDER BY, always include NULLS FIRST/LAST.

Previously, we included NULLS FIRST when appropriate but relied on the
default behavior to be NULLS LAST.  This is, however, not true for a
sort in descending order and seems like a fragile assumption anyway.

Report by Rajkumar Raghuwanshi.  Patch by Ashutosh Bapat.  Review
comments from Michael Paquier and Tom Lane.

Files