Re: Large object loading stalls - Mailing list pgsql-general

From Tom Lane
Subject Re: Large object loading stalls
Date
Msg-id 8473.1235143066@sss.pgh.pa.us
Whole thread Raw
In response to Re: Large object loading stalls  (Michael Akinde <michael.akinde@met.no>)
Responses Re: Large object loading stalls  (Michael Akinde <michael.akinde@met.no>)
List pgsql-general
Michael Akinde <michael.akinde@met.no> writes:
> Anyway - the situation now is that just the loading process is hanging
> on the server, with an <IDLE> in transaction. But it is definitely the
> loading program that is hanging, not the Postgres server.

What the stack traces seem to show is that both the client and the
server are waiting for each other to send some data.  Which means
somebody's bollixed the protocol.

In the past we've seen this type of thing caused by multithreaded
client programs in which more than one thread tried to use the same
PGconn object without adequate interlocking.  libpq itself does not
provide any threading guards --- if you want more than one thread
accessing a PGconn then it's up to you to use a mutex or something
to serialize them.  Is it possible this case applies here?

            regards, tom lane

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: where to divide application and database
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: where to divide application and database