X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id EDDAA9DC9FC for ; Thu, 26 Jan 2006 02:15:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93087-04 for ; Thu, 26 Jan 2006 02:15:22 -0400 (AST) X-Greylist: delayed 00:42:24.8534 by SQLgrey- Received: from correo.euskaltel.es (ektmail6mta1.euskaltel.es [212.55.8.90]) by postgresql.org (Postfix) with ESMTP id BDD339DC95C for ; Thu, 26 Jan 2006 02:15:20 -0400 (AST) Received: from closehub ([82.130.147.23]) by ektmail6mta1.euskaltel.es (Sun Java System Messaging Server 6.2-3.03 (built Jun 27 2005)) with ESMTP id <0ITO00A6AQ2SNL00@ektmail6mta1.euskaltel.es> for pgsql-jdbc@postgresql.org; Thu, 26 Jan 2006 06:32:52 +0100 (MET) Date: Thu, 26 Jan 2006 06:32:37 +0100 From: Andres Ledesma Subject: Re: strange problem In-reply-to: To: pgsql-jdbc@postgresql.org Message-id: <200601260632.37789.aledes@euskalnet.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7BIT Content-disposition: inline References: User-Agent: KMail/1.7 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.919 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.919 X-Spam-Level: * X-Archive-Number: 200601/123 X-Sequence-Number: 14574 On Wednesday 25 January 2006 08:51 pm, Gilbert, Antoine wrote: > > Statement stmt = connection.createStatement(); > > ResultSet rs =stmt.executeQuery("select street from \"QCs_polyline\""); > > stmt.close(); > > > > This takes 19 sec. Does I am missing something like a configuration on > the driver? So far I was just testing PostGIS/PostgreSQL with tiny > tables. Did you try to create a function in the database returning the rows you want to fetch and to use CallableStatement ? -- Andres Ledesma =================