pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: creimer@brturbo.com.br
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Context switch storm
Date: Fri, 03 Nov 2006 10:25:47 -0500
Message-ID: <2400.1162567547@sss.pgh.pa.us> (raw)
In-Reply-To: <c4069b084d04.454b27e4@brturbo.com.br>
References: <efc1d7c07cf.454afe8d@brturbo.com.br>
	<454B3B75.6@archonet.com>
	<c4069b084d04.454b27e4@brturbo.com.br>

creimer@brturbo.com.br writes:
> And why this happens only with 8.0 and 8.1 and not with the 7.4?

8.0 and 8.1 are vulnerable to this behavior because of conflicts for
access to pg_subtrans (which didn't exist in 7.4).  The problem occurs
when you have old open transactions, causing the window over which
pg_subtrans must be accessed to become much wider than normal.
8.2 should eliminate or at least alleviate the issue, but in the
meantime see if you can get your applications to not sit on open
transactions.

			regards, tom lane



view thread (22+ messages)  latest in thread

Message-ID: <2400.1162567547@sss.pgh.pa.us>
Permalink:  ../2400.1162567547@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2400.1162567547@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, creimer@brturbo.com.br, dev@archonet.com
  Subject: Re: Context switch storm
  In-Reply-To: <2400.1162567547@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