| From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix rule-detection code for MERGE. |
| Date: | 2022-11-25 13:34:10 |
| Message-ID: | E1oyYqH-000lec-FI@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7b2ccc5e03bf16d1e1bbabca25298108c839ec52
Modified Files
--------------
src/backend/parser/parse_merge.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2022-11-25 13:58:59 | pgsql: Fix gen_node_support.pl for changed AclMode size |
| Previous Message | Peter Eisentraut | 2022-11-25 12:06:24 | pgsql: doc: Re-order Table 28.35 "Per-Backend Statistics Functions" |