Don't test for system columns on join relations
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 2 Feb 2016 18:20:02 +0000 (19:20 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 2 Feb 2016 18:20:02 +0000 (19:20 +0100)
commit3cb5867b7d346eff4abcb69ca182ba658d5faecc
tree3d9c42c113f5ddbe742210432bd0e419e9b70a12
parent2ad83fff221eec2cc76f8823b0043763d0dfe0c3
Don't test for system columns on join relations

create_foreignscan_plan needs to know whether any system columns are
requested from a relation (this flag is needed by ForeignNext during
execution).  However, for join relations this is a pointless test,
because it's not possible to request system columns from them, so
remove the check.

Author: Etsuro Fujita
Discussion: http://www.postgresql.org/message-id/56AA0FC5.9000207@lab.ntt.co.jp
Reviewed-by: David Rowley, Robert Haas
src/backend/optimizer/plan/createplan.c