pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: swampler@noao.edu
Cc: 'Postgres-ODBC' <pgsql-odbc@postgresql.org>
Subject: Re: Help with hang on empty query (PG 7.3.2,
Date: Tue, 11 Nov 2003 12:33:52 +0900
Message-ID: <3FB058A0.2E3034F6@tpf.co.jp> (raw)
References: <012c01c3a650$bb5a07e0$3d283ddb@PbgX>
	<1068398142.12206.64.camel@weaver.tuc.noao.edu>
	<1068482822.11726.7.camel@weaver.tuc.noao.edu>



Steve Wampler wrote:
> 
> 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...

The pthread_mutex_lock call is blocking the thread itself.
I changed the behavior of the mutex in my patch I sent you
in another posting.

regards,
Hiroshi Inoue
	http://www.geocities.jp/inocchichichi/psqlodbc/



view thread (9+ messages)

Message-ID: <3FB058A0.2E3034F6@tpf.co.jp>
Permalink:  ../3FB058A0.2E3034F6@tpf.co.jp/
Also on:    postgresql.org/message-id/3FB058A0.2E3034F6@tpf.co.jp

 · 

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: Inoue@tpf.co.jp, swampler@noao.edu
  Subject: Re: Help with hang on empty query (PG 7.3.2,
  In-Reply-To: <3FB058A0.2E3034F6@tpf.co.jp>
  References: <012c01c3a650$bb5a07e0$3d283ddb@PbgX> <1068398142.12206.64.camel@weaver.tuc.noao.edu> <1068482822.11726.7.camel@weaver.tuc.noao.edu> <3FB058A0.2E3034F6@tpf.co.jp>

* 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