pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@heroku.com>
Cc: 大塚憲司 <otsuka.kenji@nttcom.co.jp>
Cc: pgsql-docs@postgresql.org, Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] The number of bytes is stored in index_size of pgstatindex() ?
Date: Thu, 18 Feb 2016 19:53:53 -0500
Message-ID: <15135.1455843233@sss.pgh.pa.us> (raw )
In-Reply-To: <CAM3SWZR5X+8QbUUh2xUuNJ8gPe7cm9Lr9CtEQafxkJoqQn-7+g@mail.gmail.com >
References: <56C5B2C7.7010604@nttcom.co.jp >
<31925.1455817248@sss.pgh.pa.us >
<CAM3SWZQtQ2WDGRqa2g_dbfHuu9CebfWvJ_XpXggFoFG1mUYzXw@mail.gmail.com >
<377.1455818470@sss.pgh.pa.us >
<CAM3SWZT2UaCTqpd71uhUVQN7b7k4treyzGyQLpv4N=TYU=F7tg@mail.gmail.com >
<10922.1455821371@sss.pgh.pa.us >
<CAM3SWZRLfCayENUVE2SqyeAiYKLFO7a7cHK4YbJGj55ZQ2i35w@mail.gmail.com >
<12435.1455823990@sss.pgh.pa.us >
<13291.1455825152@sss.pgh.pa.us >
<CAM3SWZTUNXgzCfVsYSFP44cRo4K-93BPDC+gEbm_WveFdTKmnA@mail.gmail.com >
<10683.1455836792@sss.pgh.pa.us >
<CAM3SWZQoELpoeniZJFer=QqyscE0G7tYR0LdMi2fX6esm1wXuQ@mail.gmail.com >
<13781.1455840922@sss.pgh.pa.us >
<CAM3SWZR5X+8QbUUh2xUuNJ8gPe7cm9Lr9CtEQafxkJoqQn-7+g@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
Peter Geoghegan <pg@heroku.com> writes:
> On Thu, Feb 18, 2016 at 4:15 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Because they've been removed from the right-link/left-link chains.
> That isn't the same thing as being inaccessible by scans, clearly
> (just what you call the "leaf scan sequence").
Only a physical-order scan, ie vacuum, would visit a dead page
(ignoring transient corner cases like a page getting deleted while an
indexscan is in flight to it). So I think treating it as part of the
fragmentation measure is completely wrong: the point of that measure,
AFAICS, is to model how close an index-order traversal is to linear.
Half-dead pages are also normally very transient --- the only way they
persist is if there's a crash partway through a page deletion. So I think
it's appropriate to assume that future indexscans won't visit those,
either.
> there are usage patterns where half-dead pages might accumulate.
Other than a usage pattern of "randomly SIGKILL backends every few
seconds", I don't see how that would happen.
regards, tom lane
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
view thread (19+ messages) latest in thread
Message-ID: <15135.1455843233@sss.pgh.pa.us>
Permalink: ../15135.1455843233@sss.pgh.pa.us/
Also on: postgresql.org/message-id/15135.1455843233@sss.pgh.pa.us
copy link · copy postgr.es
reply 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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pg@heroku.com, otsuka.kenji@nttcom.co.jp, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] The number of bytes is stored in index_size of pgstatindex() ?
In-Reply-To: <15135.1455843233@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