Re: Last Committed Transaction

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: bcolls(at)cbnlottery(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Last Committed Transaction
Date: 2003-01-27 18:32:01
Message-ID: 200301271832.h0RIW2015028@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)cbnlottery(dot)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(at)postgresql(dot)org)
>

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-01-27 18:38:52 Re: migrating from progress dbms
Previous Message Wenzhe Zhou 2003-01-27 18:31:35 Re: vacuum problem