From: Karl O. Pinc <kop@meme.com>
To: Kevin Grittner <kgrittn@ymail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12469: pg_locks shows locks held by pids not found i n pg_stat_activity or ps
Date: Fri, 9 Jan 2015 12:31:46 -0600
Message-ID: <20150109123146.600a392c@slate.meme.com> (raw)
In-Reply-To: <1511260135.4208486.1420826855952.JavaMail.yahoo@jws10056.mail.ne1.yahoo.com>
References: <20150109173951.2583.26210@wrigleys.postgresql.org>
<1511260135.4208486.1420826855952.JavaMail.yahoo@jws10056.mail.ne1.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, 9 Jan 2015 18:07:35 +0000 (UTC)
Kevin Grittner <kgrittn@ymail.com> wrote:
> "kop@meme.com" <kop@meme.com> wrote:
>
> > I found that after running a large transaction (for days, it's still
> > running) and then running out of shared memory that pg_locks
> > reports locks held by pids that do not seem to exist, either in ps
> > output or in pg_stat_activity.
>
> That is not a bug. For details see either of the below links:
>
> http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/storage/lmgr/README-SSI;hb=m...
>
> http://vldb.org/pvldb/vol5/p1850_danrkports_vldb2012.pdf
>
> The short explanation is that SIReadLocks on a serializable
> transaction may need to be kept until overlapping transactions
> terminate.
Ok. Thanks.
The transactions/locks are in separate databases. I would think
that in most cases that a
transaction in one database cannot have any effect on a
transaction in another database.
It would be nice if pg were clever enough to isolate transactions
within databases.
Regards,
Karl <kop@meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: kop@meme.com, kgrittn@ymail.com
Subject: Re: BUG #12469: pg_locks shows locks held by pids not found i n pg_stat_activity or ps
In-Reply-To: <20150109123146.600a392c@slate.meme.com>
References: <20150109173951.2583.26210@wrigleys.postgresql.org> <1511260135.4208486.1420826855952.JavaMail.yahoo@jws10056.mail.ne1.yahoo.com> <20150109123146.600a392c@slate.meme.com>
* 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