pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Teach planner how to estimate rows for timestamp generate_series
Date: Mon, 08 Jul 2024 21:55:36 +0000
Message-ID: <E1sQwKe-000uBF-Pa@gemulon.postgresql.org> (raw)

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.universality@gmail.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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1sQwKe-000uBF-Pa@gemulon.postgresql.org>
Permalink:  ../E1sQwKe-000uBF-Pa@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sQwKe-000uBF-Pa@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Teach planner how to estimate rows for timestamp generate_series
  In-Reply-To: <E1sQwKe-000uBF-Pa@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox