Simplify show_incremental_sort_info a bit
Tomas Vondra <tomas.vondra@postgresql.org>
Simplify show_incremental_sort_info a bit Incremental sort always processes at least one full group group before switching to prefix groups, so it's enough to check just the number of full groups. There was no risk of division by zero due to the extra condition, but it made the code harder to understand. Reported-by: Ranier Vilela Discussion: https://postgr.es/m/CAEudQAp+7qoS92-4V1vLChpdY3vEkLCbf+gye6P-4cirE-0z0A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +2 −3 |
Discussion
- [PATCH] Fix division by zero (explain.c) 13 messages · 2020-04-23 → 2020-05-09