Re: Wal -long transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Agnes Bocchino <agnes(dot)bocchino(at)bull(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Wal -long transaction
Date: 2006-03-13 15:20:24
Message-ID: 7333.1142263224@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> On Mon, Mar 13, 2006 at 03:59:33PM +0100, Agnes Bocchino wrote:
>> (I have tried to make the test but without success for finding a long
>> transaction)

> AIUI it just keeps creating more segments. i.e. checkpoint_segment is
> not a hard limit. It's just the number it keeps around and recycles
> rather than continually creating and deleteing files.

More to the point, having a long transaction has nothing to do with this
(we are not Oracle!). The only thing that determines the amount of WAL
space needed is the time between checkpoints. You can have a
transaction that stays open for many checkpoints without causing WAL to
bloat.

Of course, there's no free lunch --- the price we pay for escaping
rollback-segment-overflow is table bloat if you don't vacuum often
enough.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-03-13 15:32:23 Re: FATAL: terminating connection due to administrator command
Previous Message Martijn van Oosterhout 2006-03-13 15:05:41 Re: Wal -long transaction