summaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-08-19 18:11:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-08-19 18:11:07 +0000
commit9005604c65696a5e8347831a8ee0cfc42b34fcb8 (patch)
treed968c47e6fbb03b0e428df7309770fbc3151b361 /src/backend/utils/init/postinit.c
parent12bc654604e5e8cd5d71b154d19e8a7708003b8b (diff)
Keep exec_simple_check_plan() from thinking "SELECT foo INTO bar" is simple.
It's not clear if this situation can occur in plpgsql other than via the EXECUTE USING case Heikki illustrated, which I will shortly close off. However, ignoring the intoClause if it's there is surely wrong, so let's patch it for safety. Backpatch to 8.3, which is as far back as this code has a PlannedStmt to deal with. There might be another way to make an equivalent test before that, but since this is just preventing hypothetical bugs, I'm not going to obsess about it.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
0 files changed, 0 insertions, 0 deletions