X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A0AB3D1B4EB for ; Sat, 8 Nov 2003 04:31:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 78601-01 for ; Sat, 8 Nov 2003 00:30:32 -0400 (AST) Received: from web20806.mail.yahoo.com (web20806.mail.yahoo.com [216.136.226.195]) by svr1.postgresql.org (Postfix) with SMTP id 89F15D1B522 for ; Sat, 8 Nov 2003 00:30:31 -0400 (AST) Message-ID: <20031108043030.19227.qmail@web20806.mail.yahoo.com> Received: from [68.107.248.174] by web20806.mail.yahoo.com via HTTP; Fri, 07 Nov 2003 20:30:30 PST Date: Fri, 7 Nov 2003 20:30:30 -0800 (PST) From: Jeff Eckermann Subject: Re: Help with hang on empty query (PG 7.3.2, To: swampler@noao.edu Cc: Postgres-ODBC In-Reply-To: <1068237031.12206.36.camel@weaver.tuc.noao.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/51 X-Sequence-Number: 3453 --- Steve Wampler wrote: > On Fri, 2003-11-07 at 11:38, Jeff Eckermann wrote: > > --- Steve Wampler wrote: > > > > > > I recently upgraded a system from RedHat 8 to > RedHat > > > 9, which > > > meant an upgrade of PG 7.2 to 7.3.2. Several > > > applications > > > that are written in a language that relies upon > dbc > > > to access > > > postgresql have stopped working. > > > > > > I've installed from source psqlodbc-07.03.0200 > > > (pthread > > > and iodbc support). From the logs it looks as > > > though the > > > connection is succeeding up to the point that an > > > empty query is sent (dunno why the empty query > is > > > being > > > sent - it appears to be part of the connection > > > procedure). > > > At this point the connection hangs - no > messages, or > > > errors. > > > Killing the client program causes postgresql to > log > > > a: > > > > > > LOG: pq_recvbuf: unexpected EOF on client > > > connection > > > > > > message. > > > > > > These programs had all been working with the > odbc > > > RPM that was > > > available for 7.2.3, so I assume it's something > to > > > do with > > > how I configured the build. > > > > > > (Can someone tell me why the odbc RPM was > dropped > > > with 7.3?) > > > > > > Thanks for any help! > > > > Someone posted a similar problem to the list not > long > > ago. Turned out to be a connection problem, i.e. > they > > could not connect to the server from the new > client > > machine at all. Can you successfully connect and > > issue queries from this machine using psql or any > > other interface? > > Yes, with no problem, both psql and jdbc. That's me out of ideas, then. I believe the driver issues an empty query as part of the connection routine to get a response back from the server, just to test that someone is listening. In principle, if that doesn't work, other queries wouldn't work either. I don't remember whether you posted your odbc log (I deleted the message), so please post it if you didn't before: maybe someone can make something out of it. __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree