pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a planner support function for numeric generate_series().
Date: Mon, 02 Dec 2024 11:39:54 +0000
Message-ID: <E1tI4mP-000jhj-Ey@gemulon.postgresql.org> (raw)

Add a planner support function for numeric generate_series().

This allows the planner to estimate the number of rows returned by
generate_series(numeric, numeric[, numeric]), when the input values
can be estimated at plan time.

Song Jinzhou, reviewed by Dean Rasheed and David Rowley.

Discussion: https://postgr.es/m/tencent_F43E7F4DD50EF5986D1051DE8DE547910206%40qq.com
Discussion: https://postgr.es/m/tencent_1F6D5B9A1545E02FD7D0EE508DFD056DE50A%40qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/97173536ed4b1c29dce0dc4119db136e142f60a2

Modified Files
--------------
src/backend/utils/adt/numeric.c              | 121 +++++++++++++++++++++++++++
src/include/catalog/catversion.h             |   2 +-
src/include/catalog/pg_proc.dat              |   9 +-
src/test/regress/expected/misc_functions.out |  65 ++++++++++++++
src/test/regress/sql/misc_functions.sql      |  38 +++++++++
5 files changed, 232 insertions(+), 3 deletions(-)



view thread (2+ messages)

Message-ID: <E1tI4mP-000jhj-Ey@gemulon.postgresql.org>
Permalink:  ../E1tI4mP-000jhj-Ey@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tI4mP-000jhj-Ey@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: dean.a.rasheed@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add a planner support function for numeric generate_series().
  In-Reply-To: <E1tI4mP-000jhj-Ey@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