Re: Last Committed Transaction - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Last Committed Transaction
Date
Msg-id 200301271832.h0RIW2015028@candle.pha.pa.us
Whole thread Raw
In response to Last Committed Transaction  (Bill Colls <bcolls@cbnlottery.com>)
List pgsql-general
The only thing I can think of is to run CHECKPOINT then look at
pg_controldata.  Another idea is to insert into a table, then look at
that rows xmin values to see the transaction id.


---------------------------------------------------------------------------

Bill Colls wrote:
>
> Is there any way to programmatically determine the last committed
> transaction in the database. If this is possible, what information is
> available?
>
> /* =============================================================== */
>
>    William E. Colls                               Senior Programmer
>    Tel 613 225 6566 ext 320          Applications Development Group
>    Fax 613 225 6651                               CBN Lottery Group
>    bcolls@cbnlottery.com                              www.cbnco.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Wenzhe Zhou
Date:
Subject: Re: vacuum problem
Next
From: Bruce Momjian
Date:
Subject: Re: migrating from progress dbms