Commit 80bd9d1
committed
[#29256] YSQL: replace hacky varno logic
Summary:
Commit de8c392 fixes a problem by
modifying varnos during Explain output formatting, which is hacky.
Commit 141703a fixes a different
problem facing a similar situation, but it applies the fix in the right
place, set_plan_refs, except that it disables the fix in case there are
no index quals to pushdown. That doesn't seem to be a valid condition
to do this fix, so bring it out of that condition. Then, remove the
hacky varno modification code in explain.c as it is no longer needed.
Also consider commit a1a5160
yb_copy_replace_varnos_mutator also doing varno modifications. That can
be investigated separately.
Jira: DB-19033
Test Plan:
On Almalinux 8:
./yb_build.sh fastdebug --gcc13 daemons initdb --skip-pg-parquet \
--java-test TestPgRegressDistinctPushdown
Close: #29256
Reviewers: amartsinchyk, patnaik.balivada
Reviewed By: amartsinchyk
Subscribers: yql
Differential Revision: https://phorge.dev.yugabyte.com/D480311 parent 53af225 commit 80bd9d1
2 files changed
+9
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
| |||
6620 | 6619 | | |
6621 | 6620 | | |
6622 | 6621 | | |
6623 | | - | |
6624 | 6622 | | |
6625 | 6623 | | |
6626 | 6624 | | |
| |||
6629 | 6627 | | |
6630 | 6628 | | |
6631 | 6629 | | |
6632 | | - | |
6633 | 6630 | | |
6634 | 6631 | | |
6635 | 6632 | | |
6636 | 6633 | | |
6637 | 6634 | | |
6638 | | - | |
6639 | 6635 | | |
6640 | 6636 | | |
6641 | 6637 | | |
6642 | 6638 | | |
6643 | 6639 | | |
6644 | 6640 | | |
6645 | 6641 | | |
6646 | | - | |
6647 | | - | |
6648 | | - | |
6649 | 6642 | | |
6650 | | - | |
| 6643 | + | |
| 6644 | + | |
6651 | 6645 | | |
6652 | 6646 | | |
6653 | 6647 | | |
| |||
6659 | 6653 | | |
6660 | 6654 | | |
6661 | 6655 | | |
6662 | | - | |
6663 | | - | |
6664 | | - | |
6665 | | - | |
6666 | | - | |
6667 | | - | |
6668 | | - | |
6669 | | - | |
6670 | | - | |
6671 | | - | |
6672 | | - | |
6673 | | - | |
6674 | | - | |
6675 | | - | |
6676 | | - | |
6677 | | - | |
6678 | | - | |
6679 | | - | |
6680 | | - | |
6681 | | - | |
6682 | | - | |
6683 | | - | |
6684 | | - | |
6685 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
616 | | - | |
617 | 615 | | |
618 | 616 | | |
619 | 617 | | |
| |||
634 | 632 | | |
635 | 633 | | |
636 | 634 | | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | 635 | | |
641 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
642 | 644 | | |
643 | 645 | | |
644 | 646 | | |
| |||
0 commit comments