Re: Very slow queries on 8.1 - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Very slow queries on 8.1
Date
Msg-id 20051117164830.GF22933@svana.org
Whole thread Raw
In response to Re: Very slow queries on 8.1  (David Rysdam <drysdam@ll.mit.edu>)
Responses Re: Very slow queries on 8.1  (David Rysdam <drysdam@ll.mit.edu>)
List pgsql-general
On Thu, Nov 17, 2005 at 11:31:27AM -0500, David Rysdam wrote:
> Right, it's about 100k rows and it is through libpq (pgadmin in this
> case, but my app uses libpq from pgtcl).  Is there a way to tell libpq
> to not do what it "likes" and do what I need instead?  I didn't see
> anything in the docs, but I didn't look very hard.

Use the async interface. There you submit the query and retrieve rows
as they come in. It's a bit trickier to program but it can be done.

psql doesn't do this though, it's not clear how it could anyway, given
the way it formats.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Very slow queries on 8.1
Next
From: David Rysdam
Date:
Subject: Re: Very slow queries on 8.1