Check for non-utility commands in PlannedStmt
authorPavan Deolasee <[email protected]>
Thu, 15 Jun 2017 05:26:04 +0000 (10:56 +0530)
committerPavan Deolasee <[email protected]>
Thu, 15 Jun 2017 05:26:04 +0000 (10:56 +0530)
commit140c2f2cb9a0474f8257fbbf0f306c766090a36e
tree3b697450347c2a9b03a4725d51f0bf9709b5d909
parent72dd9fdf7a898bddf4cfbf9b4d16bff11521d3da
Check for non-utility commands in PlannedStmt

Starting PG 10, even utility statements are wrapped in a PlannedStmt. So we
must ensure that we are dealing with non-utility statements before trying to
look into the planTree because it won't be set for utility statements.
src/pl/plpgsql/src/pl_exec.c