Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9epv-0008Fb-Je for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jan 2015 19:03:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y9epu-0006ob-D5 for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jan 2015 19:03:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y9ept-0006oV-QP for pgsql-bugs@postgresql.org; Fri, 09 Jan 2015 19:03:05 +0000 Received: from janus.meme.com ([69.17.73.118] helo=smtp.meme.com) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y9epp-0004aU-NK for pgsql-bugs@postgresql.org; Fri, 09 Jan 2015 19:03:04 +0000 Received: from slate.meme.com (unknown [192.168.1.14]) by smtp.meme.com (Postfix) with ESMTPS id D1BC7A0F0; Fri, 9 Jan 2015 13:02:55 -0600 (CST) Received: from slate.meme.com (localhost [IPv6:::1]) by slate.meme.com (Postfix) with ESMTP id 2D7433FB6A; Fri, 9 Jan 2015 13:02:55 -0600 (CST) Date: Fri, 9 Jan 2015 13:02:53 -0600 From: "Karl O. Pinc" To: Kevin Grittner Cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #12469: pg_locks shows locks held by pids not found i n pg_stat_activity or ps Message-ID: <20150109130253.523c250c@slate.meme.com> 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> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, 9 Jan 2015 18:38:36 +0000 (UTC) Kevin Grittner wrote: > Karl O. Pinc 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 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