aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-06-13 12:59:25 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-06-13 12:59:25 -0400
commit89d53515e53ea080029894939118365b647489b3 (patch)
tree6d8839cba676d636270e49ad5c7ca4a9bc42b432 /contrib/postgres_fdw/sql/postgres_fdw.sql
parentcd9b4f24ce5f24de5112392d5a9db3a8d4208115 (diff)
downloadpostgresql-89d53515e53ea080029894939118365b647489b3.tar.gz
postgresql-89d53515e53ea080029894939118365b647489b3.zip
In planner.c, avoid assuming that all PathTargets have sortgrouprefs.
The struct definition for PathTarget specifies that a NULL sortgrouprefs pointer means no sortgroupref labels. While it's likely that there should always be at least one labeled column in the places that were unconditionally fetching through the pointer, it seems wiser to adhere to the data structure specification and test first. Add a macro to make this convenient. Per experimentation with running the regression tests with a very small parallelization threshold --- the crash I observed may well represent a bug elsewhere, but still this coding was not very robust. Report: <20756.1465834072@sss.pgh.pa.us>
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions