public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jon Zeppieri <[email protected]>
To: Igor Korot <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: David Barbour <[email protected]>
Cc: Christophe Pettus <[email protected]>
Cc: Adrian Klaver <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Get info about the index
Date: Fri, 1 Aug 2025 20:27:38 -0400
Message-ID: <CAKfDxxy7ozvUj1mWCZRM=-L5z00S8wXUW+d1KKw56nG+yXo0MA@mail.gmail.com> (raw)
In-Reply-To: <CA+FnnTzA5+78w3UbkQCTd74GPqpB=D=tu0eEccqX9301TTcynQ@mail.gmail.com>
References: <CA+FnnTw2ouEQKSKzQ_SNo8efWE8wEqjr9Ux-F-wbR+y=Pn6bGg@mail.gmail.com>
	<[email protected]>
	<CA+FnnTyKb0cLp9GF3YENoBZ4LVW3db_RSGR99BPFnA4BZtc8kQ@mail.gmail.com>
	<[email protected]>
	<CA+FnnTy8bdXxFZBmFfm1oNMQLVxL-+UmkX8EecbLB0MehX8gFw@mail.gmail.com>
	<CAKfDxxw=4Vax5Oq0apoAE=RkzNgHwvHzKX1ejE6z7n7_vtGBUQ@mail.gmail.com>
	<CAEMHB2QQpfxjbqbyB6zy+TMv9zf42tavLuYUSxDXgyZEaq46Xg@mail.gmail.com>
	<[email protected]>
	<CA+FnnTyFwR_Xk8pEhasG7GGWAzFk9e4tCBdX36G6H1-=uJxrfg@mail.gmail.com>
	<[email protected]>
	<CA+FnnTzA5+78w3UbkQCTd74GPqpB=D=tu0eEccqX9301TTcynQ@mail.gmail.com>

On Fri, Aug 1, 2025 at 8:06 PM Igor Korot <[email protected]> wrote:
>
> If I read the docs correctly, this field indicates whether the
> WHERE condition is actually present.
>

Are you referring to the condition on a partial index? You can get
that using pg_get_expr():

select pg_get_expr(indpred, indrelid) from pg_index where indexrelid =
'my_partial_index'::regclass;

- Jon






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], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Get info about the index
  In-Reply-To: <CAKfDxxy7ozvUj1mWCZRM=-L5z00S8wXUW+d1KKw56nG+yXo0MA@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