Re: [HACKERS] Hot Standby utility and administrator functions - Mailing list pgsql-general

From Simon Riggs
Subject Re: [HACKERS] Hot Standby utility and administrator functions
Date
Msg-id 1224536166.3808.864.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: [HACKERS] Hot Standby utility and administrator functions  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [HACKERS] Hot Standby utility and administrator functions
List pgsql-general
On Mon, 2008-10-20 at 17:44 -0300, Alvaro Herrera wrote:
> Simon Riggs escribió:
> >
> > On Mon, 2008-10-20 at 16:22 -0400, Robert Haas wrote:
> > > > * pg_last_recovered_xact_xid()
> > > > Will throw an ERROR if *not* executed in recovery mode.
> > > > returns bigint
> > > >
> > > > * pg_last_completed_xact_xid()
> > > > Will throw an ERROR *if* executed in recovery mode.
> > > > returns bigint
> > >
> > > Should these return xid?
> >
> > Perhaps, but they match txid_current() which returns bigint.
> > http://developer.postgresql.org/pgdocs/postgres/functions-info.html
>
> That's been "extended with an epoch counter" per the docs; I don't think
> that's appropriate for the new functions, is it?

I assumed it was, so you can subtract them easily.

It can be done either way, I guess. Happy to provide what people need. I
just dreamed up a few that sounded useful.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Debian no longer dumps cores?
Next
From: "Karl Nack"
Date:
Subject: How best to implement a multi-table constraint?