Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size
Date
Msg-id 15ee4989-c366-4d1b-95a6-d8a49b14aaf5@proxel.se
Whole thread Raw
In response to PATCH: Add hooks for pg_total_relation_size and pg_indexes_size  (Abdoulaye Ba <abdoulayeba29@gmail.com>)
Responses Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size
List pgsql-hackers
On 8/8/24 2:18 PM, Abdoulaye Ba wrote:
> I am submitting a patch to add hooks for the functions 
> pg_total_relation_size and pg_indexes_size. These hooks allow for custom 
> behaviour to be injected into these functions, which can be useful for 
> extensions and other custom PostgreSQL modifications.

What kind of extensions do you imagine would use this hook? If it is for 
custom index AMs I think adding this to the index AM interface would 
make more sense than just adding a generic callback hook.

Andreas




pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: Add LSN <-> time conversion functionality
Next
From: Andres Freund
Date:
Subject: Re: Building with meson on NixOS/nixpkgs