Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 533B62E4799 for ; Fri, 18 Jan 2008 12:44:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 02032-02 for ; Fri, 18 Jan 2008 12:44:05 -0400 (AST) Received: from web81410.mail.mud.yahoo.com (web81410.mail.mud.yahoo.com [68.142.199.138]) by postgresql.org (Postfix) with SMTP id C1A6D2E478D for ; Fri, 18 Jan 2008 12:44:04 -0400 (AST) Received: (qmail 2983 invoked by uid 60001); 18 Jan 2008 16:44:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=efESGDZrPaRgxMwP2n02nLMN+JBJTXzHUX3Q24P4CTRDSXd8EWhIPZPCdCG2/+lgAEmg2HrSA8Y8GNnFUNKLqUMcpXmxdrNLdQY7rg3Dci7lZi7W/qZ5jhyiB0DGIW08DQ6r4k2WqsVmK1k1i4lHqo938PlFXiPbhCxOBmszUu8=; X-YMail-OSG: I2CapG8VM1kNqZrDEke4JCMSEOKZEI3wWKat5u1pRnUDilXe9EzVe.F.gtXXNi0hFbVqtYeZgcS.Ctw9XYL36l84xgl3AqYxlPIBl_Op9cx.1KvvHpc- Received: from [12.44.178.253] by web81410.mail.mud.yahoo.com via HTTP; Fri, 18 Jan 2008 08:44:03 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.158.1 Date: Fri, 18 Jan 2008 08:44:03 -0800 (PST) From: Davebo Rodrigues Subject: odbc otl lockup in rlogon To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-840774825-1200674643=:2181" Message-ID: <487247.2181.qm@web81410.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/27 X-Sequence-Number: 9334 --0-840774825-1200674643=:2181 Content-Type: text/plain; charset=us-ascii I am using he latest otl header (v 4.0.159) with the latest odbc library. I have a heavily multi-threaded application using otl to do many simultaneous read/writes on my postgres database. Randomly, I will see the rlogon function lockup on the SQLSetEnvAttr function call. When I set Threading=3 or Threading=1, it locks up more often. Also, I have compiled odbc and postgres for multi-threaded use. I also call the otl_initialize(1), so that otl lets the driver know it is multithreaded. My odbcinst.ini is setup as follows: [PostgreSQL] Description = ODBC for PostgreSQL Driver = /usr/local/odbc/lib/libodbcpsql.so.2 Setup = /usr/local/odbc/lib/libodbcpsqlS.so.2 FileUsage = 1 CPTimeout = 1000 CPReuse = 20 Threading = 2 [ODBC] Trace = no TraceFile = ForceTrace = No Pooling = Yes Any ideas??? ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --0-840774825-1200674643=:2181 Content-Type: text/html; charset=us-ascii
I am using he latest otl header (v  4.0.159) with the latest odbc library.  I have a heavily multi-threaded application using otl to do many simultaneous read/writes on my postgres database. 

Randomly, I will see the rlogon function lockup on the SQLSetEnvAttr function call. 

When I set Threading=3 or Threading=1, it locks up more often.
Also, I have compiled odbc and postgres for multi-threaded use.  I also call the otl_initialize(1), so that otl lets the driver know it is multithreaded.

My odbcinst.ini is setup as follows:
[PostgreSQL]
Description    = ODBC for PostgreSQL
Driver        = /usr/local/odbc/lib/libodbcpsql.so.2
Setup        = /usr/local/odbc/lib/libodbcpsqlS.so.2
FileUsage    = 1
CPTimeout    = 1000
CPReuse        = 20
Threading    = 2

[ODBC]
Trace        = no
TraceFile    =
ForceTrace    = No
Pooling        = Yes

Any ideas???


Never miss a thing. Make Yahoo your homepage. --0-840774825-1200674643=:2181--