Re: [GENERAL] [HACKERS] Hot Standby utility and administrator functions

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, pgadmin-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] [HACKERS] Hot Standby utility and administrator functions
Date: 2008-10-20 20:56:06
Message-ID: 1224536166.3808.864.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-general pgsql-hackers


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

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Tom Lane 2008-10-20 22:45:31 Re: [HACKERS] Hot Standby utility and administrator functions
Previous Message Alvaro Herrera 2008-10-20 20:44:05 Re: [GENERAL] [HACKERS] Hot Standby utility and administrator functions

Browse pgsql-general by date

  From Date Subject
Next Message Karl Nack 2008-10-20 20:56:21 How best to implement a multi-table constraint?
Previous Message Alvaro Herrera 2008-10-20 20:49:04 Debian no longer dumps cores?

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-10-20 21:11:15 pgsql: Properly access a buffer's LSN using existing access macros
Previous Message Magnus Hagander 2008-10-20 20:49:58 Re: SSL cleanups/hostname verification