From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
Cc: | Andres Freund <andres(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: Allow "snapshot too old" error, to prevent bloat |
Date: | 2015-02-19 02:31:40 |
Message-ID: | CABUevEydGn_vsx6OBKQL7jgm9Fc28sDS5jZyXqpxCsC2ZMbxVw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Feb 18, 2015 at 10:57 PM, Kevin Grittner <kgrittn(at)ymail(dot)com> wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> > On Feb 17, 2015 12:26 AM, "Andres Freund" <andres(at)2ndquadrant(dot)com>
> wrote:
> >> On 2015-02-16 16:35:46 -0500, Bruce Momjian wrote:
> >> But max_standby_streaming_delay, max_standby_archive_delay and
> >> hot_standby_feedback are among the most frequent triggers for
> >> questions and complaints that I/we see.
> >>
> > Agreed.
> > And a really bad one used to be vacuum_defer_cleanup_age, because
> > of confusing units amongst other things. Which in terms seems
> > fairly close to Kevins suggestions, unfortunately.
>
> Particularly my initial suggestion, which was to base snapshot
> "age" it on the number of transaction IDs assigned. Does this look
> any better to you if it is something that can be set to '20min' or
> '1h'? Just to restate, that would not automatically cancel the
> snapshots past that age; it would allow vacuum of any tuples which
> became "dead" that long ago, and would cause a "snapshot too old"
> message for any read of a page modified more than that long ago
> using a snapshot which was older than that.
>
Yes, it would definitely look much better. My reference per above was
exactly that - having a setting in the unit "number of xids" confused a lot
of users and made it really hard to tune. Having something in time units is
a lot easier to understand and tune for most people.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Flower | 2015-02-19 02:38:28 | Re: Expanding the use of FLEXIBLE_ARRAY_MEMBER for declarations like foo[1] |
Previous Message | Etsuro Fujita | 2015-02-19 02:30:04 | Re: Odd behavior of updatable security barrier views on foreign tables |