From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Teach planner how to estimate rows for timestamp generate_series |
Date: | 2024-07-08 21:55:36 |
Message-ID: | E1sQwKe-000uBF-Pa@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Teach planner how to estimate rows for timestamp generate_series
This provides the planner with row estimates for
generate_series(TIMESTAMP, TIMESTAMP, INTERVAL),
generate_series(TIMESTAMPTZ, TIMESTAMPTZ, INTERVAL) and
generate_series(TIMESTAMPTZ, TIMESTAMPTZ, INTERVAL, TEXT) when the input
parameter values can be estimated during planning.
Author: David Rowley
Reviewed-by: jian he <jian(dot)universality(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAApHDvrBE%3D%2BASo_sGYmQJ3GvO8GPvX5yxXhRS%3Dt_ybd4odFkhQ%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/036bdcec9f9998a6e50711fadce69e482ff18f55
Modified Files
--------------
src/backend/utils/adt/timestamp.c | 88 +++++++++++++++++++++
src/include/catalog/pg_proc.dat | 12 ++-
src/test/regress/expected/misc_functions.out | 110 +++++++++++++++++++++++++++
src/test/regress/sql/misc_functions.sql | 84 ++++++++++++++++++++
4 files changed, 291 insertions(+), 3 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2024-07-08 21:58:21 | pgsql: Perform forgotten cat version bump |
Previous Message | Andrew Dunstan | 2024-07-08 21:36:01 | pgsql: Symlink pg_replslot robustly on Windows in pg_basebackup test |