Re: pgsql: pgstat: add pgstat_copy_relation_stats(). - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: pgstat: add pgstat_copy_relation_stats().
Date
Msg-id Yk4pEKutdCO7RVLY@paquier.xyz
Whole thread Raw
In response to pgsql: pgstat: add pgstat_copy_relation_stats().  (Andres Freund <andres@anarazel.de>)
List pgsql-committers
On Wed, Apr 06, 2022 at 09:35:17PM +0000, Andres Freund wrote:
> pgstat: add pgstat_copy_relation_stats().
>
> Until now index_concurrently_swap() directly modified pgstat internal
> datastructures. That will break with the introduction of shared memory
> statistics and seems off architecturally.
>
> This is done separately from the - quite large - shared memory statistics
> patch to make review easier.

Thanks for this one.  This new routine makes sense.
--
Michael

Attachment

pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Add option --config-file to pg_rewind
Next
From: Andres Freund
Date:
Subject: pgsql: pgstat: prepare APIs used by pgstatfuncs for shared memory stats