pgsql: Fix rule-detection code for MERGE. - Mailing list pgsql-committers

From Dean Rasheed
Subject pgsql: Fix rule-detection code for MERGE.
Date
Msg-id E1oyYqH-000led-Fo@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/04d61bfe64c9098aa737d0bea428b46a46b358bb

Modified Files
--------------
src/backend/parser/parse_merge.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Re-order Table 28.35 "Per-Backend Statistics Functions"
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Fix gen_node_support.pl for changed AclMode size