From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Jim C. Nasby <jnasby@pervasive.com>
Cc: Gourish Singbal <gourish@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Autovacuuming
Date: Mon, 24 Apr 2006 17:36:56 -0400
Message-ID: <6697.1145914616@sss.pgh.pa.us> (raw)
In-Reply-To: <20060424190603.GC16134@surnet.cl>
References: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com>
<20060424124155.GA13361@surnet.cl>
<20060424180038.GG48010@pervasive.com>
<20060424190603.GC16134@surnet.cl>
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Jim C. Nasby wrote:
>> Ok, I'll bite... any idea how (MaxTransactionId >> 3) * 3 was chosen? I
>> don't see anything about it in vacuum.c...
> I don't remember exactly why was that constant chosen. IIRC Tom pulled
> it out of thin air.
Pretty much. One of the main constraints at the time was that we wanted
it to be warning for a good long time before actual wraparound happened,
because the consequences would be so catastrophic. Now that there's
some failsafe code in place, it might be reasonable to narrow the margin
so it doesn't start bleating quite so soon. We'd still be pulling
specific numbers out of the air though ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@commandprompt.com, jnasby@pervasive.com, gourish@gmail.com
Subject: Re: Autovacuuming
In-Reply-To: <6697.1145914616@sss.pgh.pa.us>
References: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com> <20060424124155.GA13361@surnet.cl> <20060424180038.GG48010@pervasive.com> <20060424190603.GC16134@surnet.cl> <6697.1145914616@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox