Re: Simple query takes 5+ minutes - Mailing list pgsql-general

From Howard Cole
Subject Re: Simple query takes 5+ minutes
Date
Msg-id 422DC186.5090304@selestial.com
Whole thread Raw
In response to Simple query takes 5+ minutes  ("Jesse D." <jesse_dv2001@yahoo.com>)
List 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)
>
>
>


pgsql-general by date:

Previous
From: Shelby Cain
Date:
Subject: Re: postgresql vs mysql performance comparison
Next
From: "FERREIRA William (COFRAMI)"
Date:
Subject: Move cursor