From: Etsuro Fujita <efujita@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further cleanup related to statistics import support in postgres
Date: Tue, 25 Aug 2026 08:51:55 +0000
Message-ID: <E1wymss-000000022GL-1qAK@gemulon.postgresql.org> (raw)
Further cleanup related to statistics import support in postgres_fdw.
* Reorder the conditions in an if-else block for efficiency.
* Reorder struct definitions for readability.
* Reorder arguments for some functions for consistency.
* Move variables to the required scope.
* Rename a variable to match an input argument.
* Add/Tweak some comments/docs for clarity.
Author: Etsuro Fujita <etsuro.fujita@gmail.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CAPmGK14otpa7XZyBO5GxDABUK9OPWFLsAwoQP3ugNdXq%3DK4J1g%40mail.gmail.com
Backpatch-through: 19
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5c52858ecdc052b2a9fc2a7f30e338ec6777c4ae
Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 136 +++++++++++++++++++-----------------
doc/src/sgml/fdwhandler.sgml | 2 +-
src/backend/commands/analyze.c | 5 ++
3 files changed, 76 insertions(+), 67 deletions(-)
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: efujita@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Further cleanup related to statistics import support in postgres
In-Reply-To: <E1wymss-000000022GL-1qAK@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