Re: How to avoid transaction ID wrap

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Mark Woodward <pgsql(at)mohawksoft(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to avoid transaction ID wrap
Date: 2006-06-06 12:45:13
Message-ID: Pine.OSF.4.61.0606061538310.253841@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 6 Jun 2006, Mark Woodward wrote:

> OK, here's my problem, I have a nature study where we have about 10 video
> cameras taking 15 frames per second.
> For each frame we make a few transactions on a PostgreSQL database.

I would suggest doing all the inserts of one frame in one transaction.
Maybe even multiple frames in one transaction. That should bring down the
number of transactions significantly.

> We want to keep about a years worth of data at any specific time.
> We have triggers that fire is something interesting is found on insert.
> We want this thing to run for a log time.
> From the numbers, you can see the PostgreSQL database is VERY loaded.

> Running VACUUM may not always be possible without losing data.

Why not?

> The numbers I have amount to 466,560,000 transactions per month, lasting a
> maximum of about 9 months until XID wrap.

If you can get that maximum up above one year (which was how long you want
to keep the data), you won't need to freeze the records to
avoid ID wraparound.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2006-06-06 13:24:27 Re: How to avoid transaction ID wrap
Previous Message Mark Woodward 2006-06-06 12:42:50 How to avoid transaction ID wrap