Last Committed Transaction
Last Committed Transaction
От:
Bill Colls <bcolls@cbnlottery.com>
Дата:
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
Re: Last Committed Transaction
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
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