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 8B9CBD1B563 for ; Mon, 10 Nov 2003 16:47:40 +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 36669-10 for ; Mon, 10 Nov 2003 12:47:09 -0400 (AST) Received: from noao.edu (noao.edu [140.252.1.54]) by svr1.postgresql.org (Postfix) with ESMTP id 6C0F4D1B532 for ; Mon, 10 Nov 2003 12:47:08 -0400 (AST) Received: from weaver.tuc.noao.edu ([140.252.38.8] verified) by noao.edu (CommuniGate Pro SMTP 4.1.5) with ESMTP-TLS id 9481564; Mon, 10 Nov 2003 09:47:03 -0700 Received: from weaver.tuc.noao.edu (localhost.localdomain [127.0.0.1]) by weaver.tuc.noao.edu (8.12.8/8.12.5) with ESMTP id hAAGl23f021792; Mon, 10 Nov 2003 09:47:02 -0700 Received: (from swampler@localhost) by weaver.tuc.noao.edu (8.12.8/8.12.8/Submit) id hAAGl2Ca021790; Mon, 10 Nov 2003 09:47:02 -0700 X-Authentication-Warning: weaver.tuc.noao.edu: swampler set sender to swampler@noao.edu using -f Subject: Re: Help with hang on empty query (PG 7.3.2, From: Steve Wampler Reply-To: swampler@noao.edu To: Hiroshi Inoue Cc: "'Postgres-ODBC'" In-Reply-To: <1068398142.12206.64.camel@weaver.tuc.noao.edu> References: <012c01c3a650$bb5a07e0$3d283ddb@PbgX> <1068398142.12206.64.camel@weaver.tuc.noao.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: National Solar Observatory Message-Id: <1068482822.11726.7.camel@weaver.tuc.noao.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 10 Nov 2003 09:47:02 -0700 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/70 X-Sequence-Number: 3472 On Sun, 2003-11-09 at 10:15, Steve Wampler wrote: > On Sat, 2003-11-08 at 16:33, Hiroshi Inoue wrote: > > > -----Original Message----- > > > From: Steve Wampler > > > > > > On Fri, 2003-11-07 at 09:05, 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 odbc to access > > > > postgresql have stopped working. > > > > > > I've now verified that the same hang occurs when using the > > > odbctest program that comes with libiodbc. > > > > > > Can anyone suggest a way to track this down further? Thanks! > > > > Could you try to remove ENTER_CONN_CS in CC_send_query > > in connection.c and change all RETURN_AFTER_LEAVE_CS(self, ..) > > to "return ..(the 2nd parameter) "? > > Hi Hiroshi, > > Thanks for the suggestion. I get the same behavior, but > the mylog file has more information in it (the other logs > are unchanged): I've done a bit more digging and the apps are hanging in a call to pthread_mutex_lock() inside SC_execute(). (I had configured the pgsqlodbc library with pthread support.) Dropping pthread support has fixed the problem, whatever it was... -- Steve Wampler -- swampler@noao.edu Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?