aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-07-04 09:26:19 +0200
committerPeter Eisentraut <peter_e@gmx.net>2018-07-13 10:41:32 +0200
commit3884072329bd1ad7d41bf7582c5d60e969365634 (patch)
treeda3724960a864d083aab60b66d060f35a9b9ced9 /src/backend/utils/adt/jsonfuncs.c
parent1f4ec8945967a75f711d721860752985624a0957 (diff)
downloadpostgresql-3884072329bd1ad7d41bf7582c5d60e969365634.tar.gz
postgresql-3884072329bd1ad7d41bf7582c5d60e969365634.zip
Prohibit transaction commands in security definer procedures
Starting and aborting transactions in security definer procedures doesn't work. StartTransaction() insists that the security context stack is empty, so this would currently cause a crash, and AbortTransaction() resets it. This could be made to work by reorganizing the code, but right now we just prohibit it. Reported-by: amul sul <sulamul@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b96Gupt_LFL7uNyy3c50-wbhA68NUjiK5%3DrF6_w%3Dpq_T%3DQ%40mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions