Re: pg_dump and XID limit - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_dump and XID limit
Date
Msg-id 6420.1290578869@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump and XID limit  (Elliot Chance <elliotchance@gmail.com>)
Responses Re: pg_dump and XID limit
List pgsql-admin
Elliot Chance <elliotchance@gmail.com> writes:
> This is a hypothetical problem but not an impossible situation. Just curious about what would happen.

> Lets say you have an OLTP server that keeps very busy on a large database. In this large database you have one or
moretables on super fast storage like a fusion IO card which is handling (for the sake of argument) 1 million
transactionsper second. 

> Even though only one or a few tables are using almost all of the IO, pg_dump has to export a consistent snapshot of
allthe tables to somewhere else every 24 hours. But because it's such a large dataset (or perhaps just network
congestion)the daily backup takes 2 hours. 

> Heres the question, during that 2 hours more than 4 billion transactions could of occurred - so what's going to
happento your backup and/or database? 

The DB will shut down to prevent wraparound once it gets 2 billion XIDs
in front of the oldest open snaphot.

            regards, tom lane

pgsql-admin by date:

Previous
From: Elliot Chance
Date:
Subject: pg_dump and XID limit
Next
From: c k
Date:
Subject: Re: plpyhton