]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Forbid FOR PORTION OF on views with INSTEAD OF triggers
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 10 Jul 2026 08:08:21 +0000 (10:08 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 10 Jul 2026 08:15:53 +0000 (10:15 +0200)
commitdfce19c2300ab00a8c41386e49dfdd6a3c8edae9
tree84720176468f5b85ec28d839b71dd3696b8b2b4f
parent54cd6fc83176d7c03abf95554aef26b0b24acc7d
Forbid FOR PORTION OF on views with INSTEAD OF triggers

Previously, an attempt to use these features together caused a crash.
Oversight of commit 8e72d914c528.

Tests are added also to show that the check for this should be in the
rewriter, not the parser, as an earlier patch version suggested.

Author: Aleksander Alekseev <aleksander@tigerdata.com>
Author: Paul A. Jungwirth <pj@illuminatedcomputing.com>
Discussion: https://www.postgresql.org/message-id/flat/CAJ7c6TME%2Bix6VRf-2TPnVTsj8qn_hy6sYAOmMhZEivwsu2wS6g%40mail.gmail.com
src/backend/rewrite/rewriteHandler.c
src/test/regress/expected/updatable_views.out
src/test/regress/sql/updatable_views.sql