public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andreas Karlsson <[email protected]>
To: Abdoulaye Ba <[email protected]>
Cc: [email protected]
Subject: Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size
Date: Wed, 28 Aug 2024 17:53:36 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+-ifObTf=5p8bAgVZYXOrOpPi3J=6nn7KBXtBJJqCm=qMn3VA@mail.gmail.com>
References: <CA+-ifOaCGFcv0KuTwU-Y83a2kwL+CTG+7frx4khxJt3KQN+GUQ@mail.gmail.com>
	<[email protected]>
	<CA+-ifObTf=5p8bAgVZYXOrOpPi3J=6nn7KBXtBJJqCm=qMn3VA@mail.gmail.com>

On 8/9/24 6:59 PM, Abdoulaye Ba wrote:>     The primary use case for 
this hook is to allow extensions to account
>     for additional storage mechanisms that are not covered by the
>     default PostgreSQL relation size calculations. For instance, in our
>     project, we are working with an external indexing system (Tantivy)
>     that maintains additional data structures outside the standard
>     PostgreSQL storage. This hook allows us to include the size of these
>     additional structures in the total relation size calculations.
> 
>     While I understand your suggestion about custom index AMs, the
>     intent behind this hook is broader. It is not limited to custom
>     index types but can also be used for other forms of external storage
>     that need to be accounted for in relation size calculations. This is
>     why a generic callback hook was chosen over extending the index AM
>     interface.
> 
>     However, if there is a consensus that such a hook would be better
>     suited within the index AM interface for cases involving custom
>     index storage, I'm open to discussing this further and exploring how
>     it could be integrated more tightly with the existing PostgreSQL AM
>     framework.

Yeah, I strongly suspected it was ParadeDB. :)

I am only one developer but I really do not like solving this with a 
hook, instead I think the proper solution is to integrate this properly 
with custom AMs and storage managers. I think we should do it properly 
or not at all.

Andreas






view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: PATCH: Add hooks for pg_total_relation_size and pg_indexes_size
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox