Re: See the WHERE clause of a partial index

From: Paul Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: See the WHERE clause of a partial index
Date: 2012-09-14 19:59:05
Message-ID: CA+6hpaku0gh=bnrPibdr8Dhsy+kwCpuMGfikQ8JFBtN62S+Lmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-09-14 20:06:02 Re: See the WHERE clause of a partial index
Previous Message Sébastien Lorion 2012-09-14 19:55:12 Re: Amazon High I/O instances