Re: index used when casting to different type?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: adb <adb(at)beast(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: index used when casting to different type?
Date: 2001-02-20 02:55:28
Message-ID: 10901.982637728@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

adb <adb(at)beast(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2001-02-20 03:05:50 Re: Weird indices
Previous Message Larry Rosenman 2001-02-20 02:53:32 Re: index used when casting to different type?