Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVjSZ-0002pv-3e for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Apr 2014 15:21:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WVjSX-0004Sf-EH for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Apr 2014 15:21:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVjSL-0004Bs-19 for pgsql-bugs@postgresql.org; Thu, 03 Apr 2014 15:21:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVjSI-0005Lk-Cw for pgsql-bugs@postgresql.org; Thu, 03 Apr 2014 15:21:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s33FLKs3027155; Thu, 3 Apr 2014 11:21:20 -0400 From: Tom Lane To: Michael Paquier cc: bashtanov@imap.cc, pgsql-bugs@postgresql.org Subject: Re: BUG #9840: Documentation bug on pg_locks In-reply-to: References: <20140403080425.309.11395@wrigleys.postgresql.org> Comments: In-reply-to Michael Paquier message dated "Thu, 03 Apr 2014 20:58:42 +0900" Date: Thu, 03 Apr 2014 11:21:20 -0400 Message-ID: <27154.1396538480@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Michael Paquier writes: > At the same time, I am attaching a doc patch recommending using > virtualtransaction instead of transaction in pg_locks when doing a > join with pg_prepared_xacts. That change doesn't really seem good enough to me, since exactly how to do the join remains just as unclear as before. I think we'd better give an explicit example. I'd be inclined to write it as select * from pg_locks pl join pg_prepared_xacts ppx on pl.virtualtransaction = '-1/' || ppx.transaction; regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs