Re: Add expressions to pg_restore_extended_stats()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Tender Wang <tndrwang(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Tomas Vondra <tomas(at)vondra(dot)me>
Subject: Re: Add expressions to pg_restore_extended_stats()
Date: 2026-03-05 22:03:44
Message-ID: aan9wOvxEYRLnEv0@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 05, 2026 at 03:20:07PM -0500, Corey Huinker wrote:
> If this seems more elegant than what we have now, I'll write up a formal
> patch for the three set-difference types (attstats, extended, extended
> exprs).

Yes, the reduction of the bloat is nice to see:
1 file changed, 52 insertions(+), 105 deletions(-)

Extending this concept to all of them should mean close to three times
the same amount of code shaved.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2026-03-05 22:09:09 Re: finish TODOs in to_json_is_immutable, to_jsonb_is_immutable also add tests on it
Previous Message Corey Huinker 2026-03-05 21:40:56 Re: Add starelid, attnum to pg_stats and leverage this in pg_dump