aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_inline.cpp
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-10-17 12:14:39 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-10-17 12:14:39 -0400
commitb21615d1e9b04d8098ec04abc32d308659085a45 (patch)
tree6dac51b700b16dc709a799057db61dce26f7efc5 /src/backend/jit/llvm/llvmjit_inline.cpp
parent62b263bf779ed5d1ad0ae3fb0a5790f773423beb (diff)
downloadpostgresql-b21615d1e9b04d8098ec04abc32d308659085a45.tar.gz
postgresql-b21615d1e9b04d8098ec04abc32d308659085a45.zip
Reject non-ON-SELECT rules that are named "_RETURN".
DefineQueryRewrite() has long required that ON SELECT rules be named "_RETURN". But we overlooked the converse case: we should forbid non-ON-SELECT rules that are named "_RETURN". In particular this prevents using CREATE OR REPLACE RULE to overwrite a view's _RETURN rule with some other kind of rule, thereby breaking the view. Per bug #17646 from Kui Liu. Back-patch to all supported branches. Discussion: https://postgr.es/m/17646-70c93cfa40365776@postgresql.org
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_inline.cpp')
0 files changed, 0 insertions, 0 deletions