Re: Add expressions to pg_restore_extended_stats() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add expressions to pg_restore_extended_stats()
Date
Msg-id aYLl__4eJ6LObs9i@paquier.xyz
Whole thread Raw
In response to Re: Add expressions to pg_restore_extended_stats()  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: Add expressions to pg_restore_extended_stats()
List pgsql-hackers
On Wed, Feb 04, 2026 at 01:13:05AM -0500, Corey Huinker wrote:
>> Hmm.  I am not sure, that depends.  How much additional information
>> would these extra parameter bring to the errors generated in
>> statatt_build_stavalues().
>
> Just the index of which expression and the name of the key that fed in the
> offending value string.

Okay.  It really sounds to me like an ErrorContextCallback would help
you here.  I don't see a need to complicate statatt_build_stavalues(),
but my intuition can also be wrong.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add LIMIT option to COPY FROM
Next
From: Peter Smith
Date:
Subject: Re: Warn when creating or enabling a subscription with max_logical_replication_workers = 0