public inbox for [email protected]  
help / color / mirror / Atom feed
From: Morris de Oryx <[email protected]>
To: Tom Lane <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Is there a way to translate pg_amop.amopstrategy into a description?
Date: Fri, 23 Aug 2024 09:36:21 -0500
Message-ID: <CAKqncchViX+ORtDEqxocN89ecMDZtSQ-31KmK30d=AQJcswPeA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAKqncch0vyy07-M-M5NPn7sFbQqZCnWoJfY2zF5i3mkfkzdwdQ@mail.gmail.com>
	<[email protected]>

Thanks for the confirmation. And, I'd say that this feature would go under
"nice to have" rather than anything more important. Although, it *would *be
nice.

On Thu, Aug 22, 2024 at 5:42 PM Tom Lane <[email protected]> wrote:

> Morris de Oryx <[email protected]> writes:
> > What I'm hoping for is a function like
> > get_opt_class_strategy_description(optclass, straregy_number)  I've
> > looked at the source a bit, and it seems that there is no such
> > function, and that it might well be difficult to implement. The
> > strategy numbers are, as far as I can see, local to the specific
> > opt_class, which has no requirement to label them in any particular
> > way.
>
> That's correct.  For btree and hash, the meanings of the strategy
> numbers are determined by the index AM; but for (IIRC) all of our
> other index AMs they're determined by the individual opclass.  So
> anything like this would have to be implemented by dedicated code
> in each opclass.  Perhaps that's worth doing, but it'd be a fair
> amount of work.
>
>                         regards, tom lane
>


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]
  Subject: Re: Is there a way to translate pg_amop.amopstrategy into a description?
  In-Reply-To: <CAKqncchViX+ORtDEqxocN89ecMDZtSQ-31KmK30d=AQJcswPeA@mail.gmail.com>

* 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