pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Guo <rguo@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unused parameter in lookup_var_attr_stats
Date: Tue, 07 Jan 2025 02:26:09 +0000
Message-ID: <E1tUzIH-000FUg-62@gemulon.postgresql.org> (raw)

Remove unused parameter in lookup_var_attr_stats

The parameter 'rel' in lookup_var_attr_stats was once used to draw an
ERROR when ANALYZE failed to acquire sufficient data to build extended
statistics.  bf2a691e0 changed the logic to raise a WARNING in the
caller instead.  As a result, this parameter is no longer needed and
can be removed.  Since this is a static function, we can always easily
reintroduce the parameter if it's ever needed in the future.

Author: Ilia Evdokimov
Reviewed-by: Fabrízio de Royes Mello
Discussion: https://postgr.es/m/b3880f22-5808-4206-88d4-1553a81c3440@tantorlabs.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f8b4007dbbac5aa9605414974c802e415176df4

Modified Files
--------------
src/backend/statistics/extended_stats.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)



Message-ID: <E1tUzIH-000FUg-62@gemulon.postgresql.org>
Permalink:  ../E1tUzIH-000FUg-62@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tUzIH-000FUg-62@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: rguo@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove unused parameter in lookup_var_attr_stats
  In-Reply-To: <E1tUzIH-000FUg-62@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