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

From Corey Huinker
Subject Re: Add expressions to pg_restore_extended_stats()
Date
Msg-id CADkLM=cEhnZhSaOn-WAVvhcco9KjpQ-GaJ_+pY-P3Me=DY5zYQ@mail.gmail.com
Whole thread Raw
In response to Re: Add expressions to pg_restore_extended_stats()  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add expressions to pg_restore_extended_stats()
List pgsql-hackers
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.

Sigh. errsave_finish() only calls errfinish() on elevel >= ERROR, and that's where the context stack is walked. The failed work in progress is attached too, mostly as a cautionary tale.

v5-0001 includes tests for null expressions on the leading and trailing end.
Attachment

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Row pattern recognition
Next
From: Peter Eisentraut
Date:
Subject: Re: Change copyObject() to use typeof_unqual