pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pailloncy Jean-Gérard <pailloncy@ifrance.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index Backward Scan fast / Index Scan slow !
Date: Mon, 12 Apr 2004 17:23:46 -0400
Message-ID: <13960.1081805026@sss.pgh.pa.us> (raw)
In-Reply-To: <E1C0B3B9-8CB3-11D8-80FD-000A95DE2550@ifrance.com>
References: <8A2105D4-8C63-11D8-80FD-000A95DE2550@ifrance.com>
	<8579.1081772899@sss.pgh.pa.us>
	<E1C0B3B9-8CB3-11D8-80FD-000A95DE2550@ifrance.com>

[ Ah, I just got to your message with the VACUUM VERBOSE results ... ]

=?ISO-8859-1?Q?Pailloncy_Jean-G=E9rard?= <pailloncy@ifrance.com> writes:
> dps=# VACUUM VERBOSE url;
> INFO:  index "url_next_index_time" now contains 349519 row versions in 
> 3534 pages
> DETAIL:  229515 index row versions were removed.
> 3071 index pages have been deleted, 2864 are currently reusable.
> CPU 0.32s/0.67u sec elapsed 76.25 sec.

Hm, this is odd.  That says you've got 349519 live index entries in only
463 actively-used index pages, or an average of 754 per page, which
AFAICS could not fit in an 8K page.  Are you using a nondefault value of
BLCKSZ?  If so what?

If you *are* using default BLCKSZ then this index must be corrupt, and
what you probably need to do is REINDEX it.  But before you do that,
could you send me a copy of the index file?

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <13960.1081805026@sss.pgh.pa.us>
Permalink:  ../13960.1081805026@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13960.1081805026@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pailloncy@ifrance.com
  Subject: Re: Index Backward Scan fast / Index Scan slow !
  In-Reply-To: <13960.1081805026@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