pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_dump: prepare attribute stats query.
Date: Wed, 26 Feb 2025 03:52:45 +0000
Message-ID: <E1tn8TU-0007MS-1P@gemulon.postgresql.org> (raw)

pg_dump: prepare attribute stats query.

Follow precedent in pg_dump for preparing queries to improve
performance. Also, simplify the query by removing unnecessary joins.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Andres Freund <andres@anarazel.de>
Co-authored-by: Corey Huinker <corey.huinker@gmail.com>
Co-authored-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://postgr.es/m/CADkLM=dRMC6t8gp9GVf6y6E_r5EChQjMAAh_vPyih_zMiq0zvA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6ee3b91bad269b8f1acee38607bd17923efd6e06

Modified Files
--------------
src/bin/pg_dump/pg_backup.h |   1 +
src/bin/pg_dump/pg_dump.c   | 123 ++++++++++++++++++++------------------------
2 files changed, 58 insertions(+), 66 deletions(-)



Message-ID: <E1tn8TU-0007MS-1P@gemulon.postgresql.org>
Permalink:  ../E1tn8TU-0007MS-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tn8TU-0007MS-1P@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: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_dump: prepare attribute stats query.
  In-Reply-To: <E1tn8TU-0007MS-1P@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