pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alistair Bayley <alistair@abayley.org>
To: pgsql-odbc@postgresql.org
Subject: Re: ODBC driver performance on large result-sets
Date: Wed, 28 May 2008 22:00:13 +0100
Message-ID: <79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com> (raw)
In-Reply-To: <79d7c4980805281351g40d2b007i7ea702bc1608cb30@mail.gmail.com>
References: <79d7c4980805281351g40d2b007i7ea702bc1608cb30@mail.gmail.com>

> 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



view thread (2+ messages)

Message-ID: <79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com>
Permalink:  ../79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com/
Also on:    postgresql.org/message-id/79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: alistair@abayley.org
  Subject: Re: ODBC driver performance on large result-sets
  In-Reply-To: <79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com>
  References: <79d7c4980805281351g40d2b007i7ea702bc1608cb30@mail.gmail.com> <79d7c4980805281400w78d7ba9akb6dc5bdf0ff9af78@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox