Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 2F09A2E008B for ; Wed, 28 May 2008 18:00:27 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 87829-06 for ; Wed, 28 May 2008 18:00:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by developer.postgresql.org (Postfix) with ESMTP id BA4632E0035 for ; Wed, 28 May 2008 18:00:14 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id i31so2405974wxd.28 for ; Wed, 28 May 2008 14:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=A7YpZYDmFZIjyg812K71ck3hzVITXo3RAUNNM3wd+CU=; b=GdYnx5oITS0pd9TOLYn5R9Etvl02ZN+bEX2gX6/Of7WMsj84+6Ae4BMHZV3VXfz1023NUMytFNKM/hxxYTHc6ilB20aBbOgL5kFQBVLoY4yFT7zvwko/Ao6zAUq2CodVTZlbAlE6mykDkAncKNjkshklJPyvdH6BfpwiqIf9ILk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=F7+T6FORcrE5yQg96RUNzLhrUY3BoJ/7Kp6NdulJEknUx5+9OLvagMYS3sTtGj4+uZtUGyLfs+tQMisiW4t9AOs3Jmbu2DfzkhFU0Vt2vxMdSSSbQ8vSS1J94Z0/vkoYYlg0lRg3UJQTpLmgUyQu4QFdm2kMVrm5W5R6H4iGU1U= Received: by 10.90.92.14 with SMTP id p14mr4088896agb.28.1212008413777; Wed, 28 May 2008 14:00:13 -0700 (PDT) Received: by 10.90.117.11 with HTTP; Wed, 28 May 2008 14:00:13 -0700 (PDT) Message-ID: <79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com> Date: Wed, 28 May 2008 22:00:13 +0100 From: "Alistair Bayley" To: pgsql-odbc@postgresql.org Subject: Re: ODBC driver performance on large result-sets In-Reply-To: <79d7c4980805281351g40d2b007i7ea702bc1608cb30@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <79d7c4980805281351g40d2b007i7ea702bc1608cb30@mail.gmail.com> X-Google-Sender-Auth: e6078254c6400a8e X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200805/18 X-Sequence-Number: 9530 > Attached are two C programs. They borh (I believe) execute the same > query against a PostgreSQL database on my WinXP laptop. The libpq > version runs quickly (in a second or less), while the ODBC version > takes about 40 seconds. Never mind. I just noticed that the ODBC driver has "disable genetic optimizer" checked. If I uncheck then presumably the query gets some decent optimisation, and runs as quickly as the libpq version. Is this a sensible default setting? Sorry for the spam. Alistair