pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: linusliu <linusliu@pchome.com.tw>
Cc: pgsql-odbc@postgresql.org
Subject: Re: odbc : delay time is too long for pgsql 7.4 ??
Date: Sat, 3 Jan 2004 09:06:25 -0800 (PST)
Message-ID: <20040103170625.29952.qmail@web20804.mail.yahoo.com> (raw)
In-Reply-To: <20040103092102.8A71.LINUSLIU@pchome.com.tw>

Don't reply to me, you are much more likely to get
help on the list.  See my few comments below.

--- linusliu <linusliu@pchome.com.tw> wrote:
> Dear Jeff :
> 
>   Thanks for your reply. I try the version 7.3.2 and
> 7.4 on the same
> machine. And, I use the same progrem for testing.
> The ODBC is 7.3.2. ( I
> think it is the newest one.)
> 
>   About the pgsql, I do nothing but follow the
> installation guide to
> install it and modify the pg_hba.conf. I do the same
> intallation procedure
> on 7.2.4 and 7.4 version. I use the pg_dump to move
> data from the 7.2.4 version
> to the new one.
> 
> The result is :
> 
>   1. the sql : 'select * from <table name> where
> 1=2'
> 
>   2. if <table name> contains lots of data (143050
> records), the first
> time I open the query, the version 7.3.2 & 7.4 : 15
> seconds delay. And
> then I reopen the query with the same SQL command :
> no delay.  I don't
> know why. Only the first time has the problem.
> 
>   3. if I oepn a read-only query, no delay.
> 
>   4. if <table name> contains less data (2 records),
> no delay.
> 
> If possible, can I install 7.2.4 on RedHat Linux 9 ?
> I tried, but failed.
> :)
> 
Repeating a query will get you quicker results the
second time, because of caching (I don't understand
the mechanism, but I know that it works).

Hard to tell whether this has anything to do with your
ODBC setup, or whether this is entirely a PostgreSQL
issue.  A couple of things to try:
* Make sure to do "vacuum analyze" on your database
(and repeat regularly)
* Set the "use declare/fetch" option in the ODBC
driver settings to true.
* Test the same queries from the command line, i.e.
psql.  If particular queries perform below your
expectation, run "explain analyze" on the query, and
post the results (with table definitions) to the
pgsql-performance list.
* Search the list archives using keyword "delphi" for
anything that might be relevant for you.

Perhaps others on this list can suggest some other things.

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003



view thread (4+ messages)

Message-ID: <20040103170625.29952.qmail@web20804.mail.yahoo.com>
Permalink:  ../20040103170625.29952.qmail@web20804.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040103170625.29952.qmail@web20804.mail.yahoo.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: jeff_eckermann@yahoo.com, linusliu@pchome.com.tw
  Subject: Re: odbc : delay time is too long for pgsql 7.4 ??
  In-Reply-To: <20040103170625.29952.qmail@web20804.mail.yahoo.com>
  References: <20040103092102.8A71.LINUSLIU@pchome.com.tw> <20040103170625.29952.qmail@web20804.mail.yahoo.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