forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit054ff3b
committed
Add a test case fora316a3b
a316a3b fixed the code in build_simpl_rel() that propagatesRelOptInfo.userid from parent to child rels so that it workscorrectly for the child rels of a UNION ALL subquery rel, thoughno tests were added in that commit. So do so here.As noted in the discussion, coming up with a test case in the coreregression suite for this fix has turned out to be tricky, so thetest case is added to the postgres_fdw's suite instead.postgresGetForeignRelSize()'s use of user mapping for the userspecified in RelOptInfo.userid makes it relatively easier to crafta test case around.Discussion:https://postgr.es/m/CA%2BHiwqH91GaFNXcXbLAM9L%3DzBwUmSyv699Mtv3i1_xtk9Xec_A%40mail.gmail.comBackpatch-through: 161 parentdd7c60f commit054ff3b
File tree
2 files changed
+65
-0
lines changed- contrib/postgres_fdw
- expected
- sql
2 files changed
+65
-0
lines changedLines changed: 42 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2689 | 2689 |
| |
2690 | 2690 |
| |
2691 | 2691 |
| |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
2692 | 2734 |
| |
2693 | 2735 |
| |
2694 | 2736 |
| |
|
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
714 | 714 |
| |
715 | 715 |
| |
716 | 716 |
| |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
717 | 740 |
| |
718 | 741 |
| |
719 | 742 |
| |
|
0 commit comments
Comments
(0)