Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Abdoulaye Ba <abdoulayeba29(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size
Date: 2024-08-09 16:10:27
Message-ID: 15ee4989-c366-4d1b-95a6-d8a49b14aaf5@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2024-08-09 16:13:58 Re: Building with meson on NixOS/nixpkgs
Previous Message Melanie Plageman 2024-08-09 15:48:28 Re: Add LSN <-> time conversion functionality