Re: pg_get_INDEXdef - opclass

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_get_INDEXdef - opclass
Дата
Msg-id 19921.1150206111@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_get_INDEXdef - opclass  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgsql-hackers
"Dave Page" <dpage@vale-housing.co.uk> writes:
> Right, but how can I conditionally join with pg_opclass based on whether
> or not the opclass specified for the column is the default for that
> type?

Check pg_opclass.opcdefault and compare pg_opclass.opcintype to the
index column's datatype (which you'd get from its pg_attribute row
... whether it's an expression is irrelevant).
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Luke Lonergan"
Дата:
Сообщение: Re: Running a query twice to ensure cached results.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Non-transactional pg_class, try 2