Re: 7.3.1 New install, large queries are slow

From: jasiek(at)klaster(dot)net
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Roman Fail <rfail(at)posportal(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, sszabo(at)megazone23(dot)bigpanda(dot)com, pgsql-performance(at)postgresql(dot)org
Subject: Re: 7.3.1 New install, large queries are slow
Date: 2003-01-16 20:48:26
Message-ID: 20030116204826.GA26576@serwer
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Tom said:
> datatype mismatch that prevents the index from being used. What are the
> datatypes of d.batchid and b.batchid, exactly? If they're not the same,
> either make them the same or add an explicit coercion to the query, like
> WHERE d.batchid = b.batchid::typeof_d_batchid
>
It can be source of problem. I found in one of Roman's mail, that
batchid is declared as int8 in master table and as int4 in detail table.
Regards,
Tomasz Myrta

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Roman Fail 2003-01-17 05:54:39 Re: 7.3.1 New install, large queries are slow
Previous Message Tom Lane 2003-01-16 19:46:33 Re: 7.3.1 New install, large queries are slow