Re: Insert into partition table hangs - Mailing list pgsql-general

From Qingqing Zhou
Subject Re: Insert into partition table hangs
Date
Msg-id e6b6ka$rp5$1@news.hub.org
Whole thread Raw
In response to Re: Insert into partition table hangs  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Responses Re: Insert into partition table hangs
List pgsql-general
"Nik" <XLPizza@gmail.com> wrote
>
> I also noticed that I am having the similar issue with SELECT
> statements. Same SELECT statement will run fine 3-4 times in a row and
> then get stuck and run forever with no results. But if I reload the
> configuration like above, the query immediatelly returns with correct
> result.
>
> Why does this happen, and could this give any insight in my problem?
>

Interesting enough :-(

I can see that for some reason, the query may be blocked on a semaphore and
also listen to the signal. So when the SIGHUP comes, it will wake up and set
a variable "got_SIGHUP" to true (that's the only immediate thing do for
SIGHUP). After that, we either continue to sleep on the semaphore or exit
with a FATAL message -- both situations does not match your senario.

A wild guess is that when we continue to sleep on the semaphore, magically
we get it, but how come?

Regards,
Qingqing



pgsql-general by date:

Previous
From: "Philippe Lang"
Date:
Subject: pgxml & xpath_table
Next
From: Nis Jorgensen
Date:
Subject: Re: Fabian Pascal and RDBMS deficiencies in fully implementing