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 13:02:53 -0600
Message-ID: <20150109130253.523c250c@slate.meme.com> (raw)
In-Reply-To: <850420152.4245057.1420828716461.JavaMail.yahoo@jws100171.mail.ne1.yahoo.com>
References: <20150109123146.600a392c@slate.meme.com>
<850420152.4245057.1420828716461.JavaMail.yahoo@jws100171.mail.ne1.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, 9 Jan 2015 18:38:36 +0000 (UTC)
Kevin Grittner <kgrittn@ymail.com> wrote:
> Karl O. Pinc <kop@meme.com> wrote:
> > It would be nice if pg were clever enough to isolate transactions
> > within databases.
>
> Good point. That would complicate the logic a bit, but it might be
> worth it. I'll make a note to look at that as a potential
> enhancement. Thanks!
Rather than figure it out dynamically at transaction commit/lock
release time you could have those operations that alter things
common to all dbs (the postgres db?) add a flag to the transaction
itself. Then the actual commit/lock release is fast. And it's
not (I suppose) all that often that things change that are
"cross-database data" so them down very slightly shouldn't
be an issue.
Just a thought. (I'd know whether it makes sense if I'd
looked at the code. ;-)
Thanks for the attention.
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: <20150109130253.523c250c@slate.meme.com>
References: <20150109123146.600a392c@slate.meme.com> <850420152.4245057.1420828716461.JavaMail.yahoo@jws100171.mail.ne1.yahoo.com> <20150109130253.523c250c@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