- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7a80e38
committed
Skip useless calculation of join RTE column names during EXPLAIN.
There's no need for set_simple_column_names() to compute uniquecolumn names for join RTEs, because a finished plan tree willnot contain any join alias Vars that we could need names for.Its other, internal callers will not pass it any join RTEsanyway, so the upshot is we can just skip join RTEs here.Aside from getting rid of a klugy against-its-documentation use ofset_relation_column_names, this can speed up EXPLAIN substantiallywhen considering many-join queries, because the upper join RTEstend to have a lot of columns.Sami Imseih, with cosmetic changes by meDiscussion:https://postgr.es/m/CAA5RZ0th3q-0p1pri58z9grG8r8azmEBa8o1rtkwhLmJg_cH+g@mail.gmail.com1 parentdc6acfd commit7a80e38
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3773 | 3773 |
| |
3774 | 3774 |
| |
3775 | 3775 |
| |
3776 |
| - | |
3777 |
| - | |
3778 |
| - | |
| 3776 | + | |
| 3777 | + | |
3779 | 3778 |
| |
3780 | 3779 |
| |
3781 | 3780 |
| |
| |||
4067 | 4066 |
| |
4068 | 4067 |
| |
4069 | 4068 |
| |
4070 |
| - | |
4071 |
| - | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
4072 | 4073 |
| |
4073 | 4074 |
| |
4074 | 4075 |
| |
| |||
4082 | 4083 |
| |
4083 | 4084 |
| |
4084 | 4085 |
| |
4085 |
| - | |
| 4086 | + | |
4086 | 4087 |
| |
4087 | 4088 |
| |
4088 | 4089 |
| |
4089 | 4090 |
| |
4090 | 4091 |
| |
4091 |
| - | |
| 4092 | + | |
| 4093 | + | |
4092 | 4094 |
| |
4093 | 4095 |
| |
4094 | 4096 |
| |
|
0 commit comments
Comments
(0)