pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: bashtanov@imap.cc
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9840: Documentation bug on pg_locks
Date: Thu, 03 Apr 2014 11:21:20 -0400
Message-ID: <27154.1396538480@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqRP9KUeJmJtFLkwDPg5k-EDONO2taCT6=EoQd2qtErnWQ@mail.gmail.com>
References: <20140403080425.309.11395@wrigleys.postgresql.org>
	<CAB7nPqRP9KUeJmJtFLkwDPg5k-EDONO2taCT6=EoQd2qtErnWQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier <michael.paquier@gmail.com> 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



view thread (3+ messages)

Message-ID: <27154.1396538480@sss.pgh.pa.us>
Permalink:  ../27154.1396538480@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27154.1396538480@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 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: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, bashtanov@imap.cc
  Subject: Re: BUG #9840: Documentation bug on pg_locks
  In-Reply-To: <27154.1396538480@sss.pgh.pa.us>
  References: <20140403080425.309.11395@wrigleys.postgresql.org> <CAB7nPqRP9KUeJmJtFLkwDPg5k-EDONO2taCT6=EoQd2qtErnWQ@mail.gmail.com> <27154.1396538480@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