pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: PostgreSQL Performance List <pgsql-performance@postgresql.org>
Subject: Re: Index on two columns not used
Date: Tue, 24 Oct 2006 11:29:36 +0200
Message-ID: <453DDD00.3000503@logix-tt.com> (raw)
In-Reply-To: <24757.1161619301@sss.pgh.pa.us>
References: <45360E25.9010403@freesurf.fr>
<45361295.9050504@enterprisedb.com>
<4539F4E1.7000003@chemaxon.hu>
<453CC2DD.4070608@logix-tt.com>
<20061023135011.GG7961@alvh.no-ip.org>
<453CDCF2.6090208@logix-tt.com>
<24757.1161619301@sss.pgh.pa.us>
Hi, Tom,
Tom Lane wrote:
> You're wrong. An UPDATE always writes a new version of the row (if it
> overwrote the row in-place, it wouldn't be rollback-able). The new
> version has a different TID and therefore the index entry must change.
> To support MVCC, our approach is to always insert a new index entry
> pointing at the new TID --- the old one remains in place so that the old
> version can still be found by transactions that need it.
OK, good you corrected me.
I had the weird impression that both row versions have the same tuple ID
(as they are different versions of the same tuple), and so an index
change is not necessary when both versions fit on the same page.
Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
view thread (16+ messages)
Message-ID: <453DDD00.3000503@logix-tt.com> Permalink: ../453DDD00.3000503@logix-tt.com/ Also on: postgresql.org/message-id/453DDD00.3000503@logix-tt.com ·
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: schabi@logix-tt.com Subject: Re: Index on two columns not used In-Reply-To: <453DDD00.3000503@logix-tt.com> * 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