Checking for old transaction snapshots

From: Greg Stark <gsstark(at)mit(dot)edu>
To: PostgreSQL General Discussion <pgsql-general(at)postgresql(dot)org>
Subject: Checking for old transaction snapshots
Date: 2005-08-14 15:26:33
Message-ID: 87pssg8rpy.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I have a job that does a big batch delete/insert. I want it to vacuum (or
probably cluster) when it's finished. But I figure I should sleep for a while
before doing the vacuum to be sure there are no old transactions still
running.

Is there a simple query I can have it do against the system tables to check
for any transactions older either than when the batch delete finished?

I'm also interested in verifying that I don't have the problem of the
front-end application issuing a BEGIN as soon as a script ends. Ie, starting a
transaction that will lie idle until the next page hit that process handles.

--
greg

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam O'Toole 2005-08-14 17:03:23 Re: [despammed] Re: [GENERAL]
Previous Message Kretschmer Andreas 2005-08-14 11:12:51 Re: [despammed] Re: [GENERAL]