Re: Regression tests fail once XID counter exceeds 2 billion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Regression tests fail once XID counter exceeds 2 billion
Date: 2011-11-15 14:17:59
Message-ID: 27304.1321366679@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> We need a function called transactionid_current() so a normal user can write

> select virtualtransaction
> from pg_locks
> where transactionid = transactionid_current()

> and have it "just work".

That would solve that one specific use-case. The reason I suggested
txid_from_xid is that it could also be used to compare XIDs seen in
tuples to members of a txid_snapshot, which is not possible now.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2011-11-15 14:30:05 Re: ToDo: pg_backup - using a conditional DROP
Previous Message Tom Lane 2011-11-15 14:14:39 Re: ToDo: pg_backup - using a conditional DROP