Consider cheap startup paths in add_paths_to_append_rel
David Rowley <drowley@postgresql.org>
Consider cheap startup paths in add_paths_to_append_rel 6b94e7a6d did this for ordered append paths to allow fast startup MergeAppends, however, nothing was done for the Append case. Here we adjust add_paths_to_append_rel() to have it build an AppendPath containing the cheapest startup paths from each of the child relations when the append rel has "consider_startup" set. Author: Andy Fan, David Rowley Discussion: https://www.postgresql.org/message-id/CAKU4AWrXSkUV=Pt-gRxQT7EbfUeNssprGyNsB=5mJibFZ6S3ww@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/allpaths.c | modified | +21 −0 |
| src/test/regress/expected/union.out | modified | +21 −0 |
| src/test/regress/sql/union.sql | modified | +11 −0 |
Discussion
- make add_paths_to_append_rel aware of startup cost 18 messages · 2023-09-06 → 2024-02-16