pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Arthur Ward <award@dominionsciences.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: syslog enabled causes random hangs?
Date: Wed, 06 Aug 2003 13:26:40 -0400
Message-ID: <29550.1060190800@sss.pgh.pa.us> (raw)
In-Reply-To: <16572.68.62.129.152.1060190049.squirrel@www.dominionsciences.com>
References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com>
	<5212.1059519400@sss.pgh.pa.us>
	<65117.68.62.130.132.1059521610.squirrel@www.dominionsciences.com>
	<9132.1059572489@sss.pgh.pa.us>
	<12218.68.62.129.152.1059584549.squirrel@www.dominionsciences.com>
	<15873.1059585791@sss.pgh.pa.us>
	<16197.68.62.129.152.1060160349.squirrel@www.dominionsciences.com>
	<18008.1060178787@sss.pgh.pa.us>
	<16572.68.62.129.152.1060190049.squirrel@www.dominionsciences.com>

"Arthur Ward" <award@dominionsciences.com> writes:
>> It looks to me like the guy doing VACUUM is simply waiting for the other
>> guy to release a page-level lock.  The other guy is running a deferred
>> trigger and so I'd expect him to be holding one or two page-level locks,
>> on the page or pages containing the tuple or tuples passed to the
>> trigger.  Nothing evidently wrong there.

> If I remember what I was working on the other day when this whole thing
> started, I think it was a single backend and a checkpoint that collided.
> I'll trace that combination, assuming it happens again.

A checkpoint would also have reason to wait for a page-level lock, if
the stuck backend was holding one.  I am wondering though if the stuck
condition consistently happens while trying to fire a trigger?  That
would be very interesting ... not sure what it'd mean though ...

>> The real question is why does vsyslog() have anything to block on, when
>> it's running in an unthreaded process?  Seeing that you are using
>> plpython, I wonder if Python is confusing matters somehow.

> Oof. I'm using plpython all over the place; I don't think this problem has
> happened in any location that can work without it easily. :-/

It looks to me like your plpython code is all dead in the water, seeing
that your Python installation is refusing creation of rexec.  (AFAIK the
only workaround is to downgrade Python to a version that allows rexec.)
If you're using it all over the place, how come you haven't noticed
that??

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <29550.1060190800@sss.pgh.pa.us>
Permalink:  ../29550.1060190800@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29550.1060190800@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, award@dominionsciences.com
  Subject: Re: syslog enabled causes random hangs?
  In-Reply-To: <29550.1060190800@sss.pgh.pa.us>
  References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> <5212.1059519400@sss.pgh.pa.us> <65117.68.62.130.132.1059521610.squirrel@www.dominionsciences.com> <9132.1059572489@sss.pgh.pa.us> <12218.68.62.129.152.1059584549.squirrel@www.dominionsciences.com> <15873.1059585791@sss.pgh.pa.us> <16197.68.62.129.152.1060160349.squirrel@www.dominionsciences.com> <18008.1060178787@sss.pgh.pa.us> <16572.68.62.129.152.1060190049.squirrel@www.dominionsciences.com> <29550.1060190800@sss.pgh.pa.us>

* 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