Re: See the WHERE clause of a partial index

Поиск
Список
Период
Сортировка
От Paul Jungwirth
Тема Re: See the WHERE clause of a partial index
Дата
Msg-id CA+6hpaku0gh=bnrPibdr8Dhsy+kwCpuMGfikQ8JFBtN62S+Lmw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: See the WHERE clause of a partial index  (Paul Jungwirth <pj@illuminatedcomputing.com>)
Список 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 по дате отправления:

Предыдущее
От: Sébastien Lorion
Дата:
Сообщение: Re: Amazon High I/O instances
Следующее
От: Tom Lane
Дата:
Сообщение: Re: See the WHERE clause of a partial index