aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-03-16 12:48:13 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-03-16 12:48:13 -0400
commit877cdf11eaa9cabcb9b1e3c1bef0760fe08efdc3 (patch)
tree4f385e2eabbc6c4e67cd78c5b99f924bc64a28a5 /src/backend/commands/dbcommands.c
parent84a3611cccfa41f29d14a5b1ab4bcc58fba9b25b (diff)
downloadpostgresql-877cdf11eaa9cabcb9b1e3c1bef0760fe08efdc3.tar.gz
postgresql-877cdf11eaa9cabcb9b1e3c1bef0760fe08efdc3.zip
Mop-up for letting VOID-returning SQL functions end with a SELECT.
Part of the intent in commit fd1a421fe was to allow SQL functions that are declared to return VOID to contain anything, including an unrelated final SELECT, the same as SQL-language procedures can. However, the planner's inlining logic didn't get that memo. Fix it, and add some regression tests covering this area, since evidently we had none. In passing, clean up some typos in comments in create_function_3.sql, and get rid of its none-too-safe assumption that DROP CASCADE notice output is immutably ordered. Per report from Prabhat Sahu. Discussion: https://postgr.es/m/CANEvxPqxAj6nNHVcaXxpTeEFPmh24Whu+23emgjiuKrhJSct0A@mail.gmail.com
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions