Re: See the WHERE clause of a partial index - Mailing list pgsql-general

From Paul Jungwirth
Subject Re: See the WHERE clause of a partial index
Date
Msg-id CA+6hpaku0gh=bnrPibdr8Dhsy+kwCpuMGfikQ8JFBtN62S+Lmw@mail.gmail.com
Whole thread Raw
In response to Re: See the WHERE clause of a partial index  (Paul Jungwirth <pj@illuminatedcomputing.com>)
List pgsql-general
> It'd be great to get just the WHERE clause if possible, although I can
> work around it if not. I couldn't find much documentation re
> pg_get_expr.

To answer my own question, this works:

    > select pg_get_expr(indpred, indrelid) from pg_index where
indexrelid = 223630;
         pg_get_expr
    ----------------------
     (deleted_at IS NULL)
    (1 row)

So I guess the problem was trying to get a pg_node_tree out of a string.

Thanks again!
Paul

--
_________________________________
Pulchritudo splendor veritatis.


pgsql-general by date:

Previous
From: Sébastien Lorion
Date:
Subject: Re: Amazon High I/O instances
Next
From: Tom Lane
Date:
Subject: Re: See the WHERE clause of a partial index