pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedquestion about timeout attributes
2+ messages / 2 participants
[nested] [flat]
* question about timeout attributes
@ 2004-12-10 18:06 joy chen <chenjoy_us@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: joy chen @ 2004-12-10 18:06 UTC (permalink / raw)
To: pgsql-odbc
Hi there,
I am playing out these timeout attributes:
SQL_ATTR_CONNECTION_TIMEOUT and
SQL_ATTR_QUERY_TIMEOUT. Basically I set the connection
timeout to 1 sec after a connection is made and query
timeout to 1 sec after a statement handle is
allocated. And then I did the following:
1. lock a table (say dummy) manually in exclusive
mode.
2. run my program which try to query this dummy table
using the odbc interface with the same statement
handle above.
To my understanding, if these timeout features are
supported correctly. My query should timeout after 1
sec. But in my test, the query just waits there
forever.
My question is therefore whether these timeout
attributes are supported by the postgresql odbc driver
at all or there is a problem in my test.
Any suggestions or recommendations are highly
appreciated.
Thank you
Joy
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: question about timeout attributes
@ 2004-12-12 16:43 Scot Loach <sloach@sandvine.com>
0 siblings, 0 replies; 2+ messages in thread
From: Scot Loach @ 2004-12-12 16:43 UTC (permalink / raw)
To: joy chen <chenjoy_us@yahoo.com>; pgsql-odbc
Hi Joy,
The SQL_ATTR_CONNECTION_TIMEOUT only applies to calling SQLConnect. If the remote server does not accept the connection, this is the maximum amount of time it will take for the function to return.
The SQL_ATTR_QUERY_TIMEOUT is not supported by the psqlodbc driver.
scot.
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of joy chen
Sent: Friday, December 10, 2004 1:06 PM
To: pgsql-odbc@postgresql.org
Subject: [ODBC] question about timeout attributes
Hi there,
I am playing out these timeout attributes:
SQL_ATTR_CONNECTION_TIMEOUT and
SQL_ATTR_QUERY_TIMEOUT. Basically I set the connection
timeout to 1 sec after a connection is made and query
timeout to 1 sec after a statement handle is
allocated. And then I did the following:
1. lock a table (say dummy) manually in exclusive
mode.
2. run my program which try to query this dummy table
using the odbc interface with the same statement
handle above.
To my understanding, if these timeout features are
supported correctly. My query should timeout after 1
sec. But in my test, the query just waits there
forever.
My question is therefore whether these timeout
attributes are supported by the postgresql odbc driver
at all or there is a problem in my test.
Any suggestions or recommendations are highly
appreciated.
Thank you
Joy
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-12-12 16:43 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-10 18:06 question about timeout attributes joy chen <chenjoy_us@yahoo.com>
2004-12-12 16:43 Re: question about timeout attributes Scot Loach <sloach@sandvine.com>
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