Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: Postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;'
Date: 2020-04-27 12:40:04
Message-ID: 5198.1587991204@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthias Apitz <guru(at)unixarea(dot)de> writes:
> I encounter from time to time that one of our ESQL/C clients hangs with
> the details described below for ever, while accessing on startup a table
> 'sisisinst' which has only some 50 rows, all of CHAR columns. Other ESQL/C clients
> start up fine (they all check this table 'sisisinst' on startup to
> verify the correct version of our application) Also SQL works
> fine.

> What can I do to get to the source of the problem? Thanks

Can you get a stack trace from the connected backend? Or even just look
at what it's doing according to pg_stat_activity? (If it's a reasonably
modern server, the wait-condition fields would be interesting.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Förster 2020-04-27 12:44:44 Re: HOST variable in psql
Previous Message Tom Lane 2020-04-27 12:22:06 Re: How to debug "background worker "parallel worker" (PID 32152) was terminated by signal 11: Segmentation fault"