pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Ng, Stan <sng@automotive.com>
Cc: Mikael Krantz <mk@zigamorph.se>
Cc: Craig Ringer <craig@postnewspapers.com.au>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: index corruption on composite primary key indexes
Date: Thu, 16 Dec 2010 11:50:00 -0300
Message-ID: <1292510876-sup-5298@alvh.no-ip.org> (raw)
In-Reply-To: <6B0DF81DDD9F654C932FB34C8D7ACE627E1888@mail-001.corp.automotive.com>
References: <6B0DF81DDD9F654C932FB34C8D7ACE627E1760@mail-001.corp.automotive.com>
	<4D076758.8060605@postnewspapers.com.au>
	<6B0DF81DDD9F654C932FB34C8D7ACE627E1788@mail-001.corp.automotive.com>
	<AANLkTimHLhK5Pt-52fDnc5c8fJ1D9G37=H9-YigTgvwU@mail.gmail.com>
	<6B0DF81DDD9F654C932FB34C8D7ACE627E1888@mail-001.corp.automotive.com>

Excerpts from Ng, Stan's message of mié dic 15 21:07:57 -0300 2010:

> Now I just need to get my head wrapped around the corner cases of MVCC
> + indexes. From a layman's perspective, it seems the index should only
> operate on the latest version. Perhaps there's a pgsql configuration
> option or hint on the index that I'm missing... The hunt continues!

All tuples need to have index pointers, even the dead ones.  They (the
index pointers to dead tuples) are also cleaned up by vacuum.  There's
an optimization called HOT that allow them to be skipped in some cases;
you may want to read
http://git.postgresql.org/gitweb?p=postgresql.git;a=blob;f=src/backend/access/heap/README.HOT

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (10+ messages)  latest in thread

Message-ID: <1292510876-sup-5298@alvh.no-ip.org>
Permalink:  ../1292510876-sup-5298@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1292510876-sup-5298@alvh.no-ip.org

 · 

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 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-bugs@postgresql.org
  Cc: alvherre@commandprompt.com, sng@automotive.com, mk@zigamorph.se, craig@postnewspapers.com.au
  Subject: Re: index corruption on composite primary key indexes
  In-Reply-To: <1292510876-sup-5298@alvh.no-ip.org>
  References: <6B0DF81DDD9F654C932FB34C8D7ACE627E1760@mail-001.corp.automotive.com> <4D076758.8060605@postnewspapers.com.au> <6B0DF81DDD9F654C932FB34C8D7ACE627E1788@mail-001.corp.automotive.com> <AANLkTimHLhK5Pt-52fDnc5c8fJ1D9G37=H9-YigTgvwU@mail.gmail.com> <6B0DF81DDD9F654C932FB34C8D7ACE627E1888@mail-001.corp.automotive.com> <1292510876-sup-5298@alvh.no-ip.org>

* 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