- Notifications
You must be signed in to change notification settings - Fork5k
Commit62c3b4c
committed
Support for deparsing of ArrayCoerceExpr node in contrib/postgres_fdw
When using a prepared statement to select data from a PostgreSQL foreigntable (postgres_fdw) with the "field = ANY($1)" expression, the operationis not pushed down when an implicit type case is applied, and a generic planis used. This commit resolves the issue by supporting the push-down ofArrayCoerceExpr, which is used in this case. The support is quitestraightforward and similar to other nods, such as RelabelType.Discussion:https://postgr.es/m/4f0cea802476d23c6e799512ffd17aff%40postgrespro.ruAuthor: Alexander Pyhalov <a.pyhalov@postgrespro.ru>Reviewed-by: Maxim Orlov <orlovmg@gmail.com>Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>1 parentb597ae6 commit62c3b4c
File tree
3 files changed
+80
-0
lines changed- contrib/postgres_fdw
- expected
- sql
3 files changed
+80
-0
lines changedLines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| 164 | + | |
164 | 165 |
| |
165 | 166 |
| |
166 | 167 |
| |
| |||
702 | 703 |
| |
703 | 704 |
| |
704 | 705 |
| |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
705 | 734 |
| |
706 | 735 |
| |
707 | 736 |
| |
| |||
2919 | 2948 |
| |
2920 | 2949 |
| |
2921 | 2950 |
| |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
2922 | 2954 |
| |
2923 | 2955 |
| |
2924 | 2956 |
| |
| |||
3507 | 3539 |
| |
3508 | 3540 |
| |
3509 | 3541 |
| |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
3510 | 3560 |
| |
3511 | 3561 |
| |
3512 | 3562 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1180 | 1180 |
| |
1181 | 1181 |
| |
1182 | 1182 |
| |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1183 | 1204 |
| |
1184 | 1205 |
| |
1185 | 1206 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
461 | 470 |
| |
462 | 471 |
| |
463 | 472 |
| |
|
0 commit comments
Comments
(0)