]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix rule-detection code for MERGE.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Fri, 25 Nov 2022 13:29:51 +0000 (13:29 +0000)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Fri, 25 Nov 2022 13:29:51 +0000 (13:29 +0000)
commit04d61bfe64c9098aa737d0bea428b46a46b358bb
tree8eaaa806a28395f8059dee43899f910cbd9c4980
parentfc02019c09feab1f371fb5881f2f050ce6e30ea9
Fix rule-detection code for MERGE.

Use the relation's rd_rules structure to test whether it has rules,
rather than the relhasrules flag, which might be out of date.

Reviewed by Tom Lane.

Backpatch to 15, where MERGE was added.

Discussion: https://postgr.es/m/CAEZATCVkBVZABfw71sYvkcPf6tarcOFST5Bc6AOi-LFT9YdccQ%40mail.gmail.com
src/backend/parser/parse_merge.c