Re: Simple query takes 5+ minutes

From: Howard Cole <howard(dot)cole(at)selestial(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Simple query takes 5+ minutes
Date: 2005-03-08 15:15:18
Message-ID: 422DC186.5090304@selestial.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have you tried a cross join with a where statement as an alternative?

e.g. select

select i.internalid, c.code
from local.internal i, country.ip c where i.ip between c.startip and c.endip;

Howard Cole
www.selestial.com

Jesse D. wrote:

>select i.internalid, c.code
>from local.internal i
>inner join country.ip c on
>(i.ip between c.startip and c.endip)
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message FERREIRA William (COFRAMI) 2005-03-08 15:23:37 Move cursor
Previous Message Shelby Cain 2005-03-08 15:06:53 Re: postgresql vs mysql performance comparison