Re: index used when casting to different type?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index used when casting to different type?
Дата
Msg-id 10901.982637728@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: index used when casting to different type?  (adb <adb@Beast.COM>)
Список pgsql-general
adb <adb@beast.com> writes:
> Ah.. This explains the performance I was getting with rserv, I have
> int4 keys on my replicated tables and _rserv_log_ uses a text column
> to be generic and support keys of different types.  Problem is the
> replicate function does a join from the text column to my key cast
> as text and thus after running for a little bit, slows to a crawl.

> Adding explicit text indexes on my int key columns seems to have
> fixed the problem.

Hmm.  Sounds like room exists for improvement in rserv here ...

            regards, tom lane

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

Предыдущее
От: adb
Дата:
Сообщение: Re: index used when casting to different type?
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: index used when casting to different type?