From: | Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz> |
---|---|
To: | Rui DeSousa <rui(at)crazybean(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Allow "snapshot too old" error, to prevent bloat |
Date: | 2015-03-16 00:14:10 |
Message-ID: | 55062052.9040707@archidevsys.co.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 16/03/15 13:04, Rui DeSousa wrote:
> Would a parameter to auto terminate long running transactions be a better solution? Terminating the long running transaction would allow for the normal vacuuming process to cleanup the deleted records thus avoiding database bloat without introducing new semantics to Postgres's MVCC. I would also recommend that the default be disabled.
>
>
Hmm...
Better per transaction, or even per statement.
If I fire of a query I expect should be completed within 30 seconds,
then I probably don't mind it aborting after 5 minutes. However, if I
fire of a query that I expect to take between an hour and 3 hours, then
I definitely don't want it aborted after 5 minutes!
It could be that 99.99% of transactions will complete with a minute, but
a small minority might reasonably be expected to take much longer.
Cheers,
Gavin
From | Date | Subject | |
---|---|---|---|
Next Message | Etsuro Fujita | 2015-03-16 01:10:47 | Re: EvalPlanQual behaves oddly for FDW queries involving system columns |
Previous Message | Rui DeSousa | 2015-03-16 00:04:15 | Re: Allow "snapshot too old" error, to prevent bloat |