Re: creating gist index seems to look at data ignoring transaction? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: creating gist index seems to look at data ignoring transaction?
Date
Msg-id 9752.1554992139@sss.pgh.pa.us
Whole thread Raw
In response to creating gist index seems to look at data ignoring transaction?  (Palle Girgensohn <girgen@pingpong.se>)
List pgsql-hackers
Palle Girgensohn <girgen@pingpong.se> writes:
> I noticed some bad data where end < begin, so I modified these first, and tried to vcreate the index in the same
transaction.The index creation does not notice the data changes. It seems creating the gist index this is not
transactionsafe? 

Index creation has to include not-yet-dead tuples in case the index gets
used by some transaction that can still see those tuples.  So in this
case index entries get made for both the original and the updated versions
of the tuples in question.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Rafia Sabih
Date:
Subject: Re: Zedstore - compressed in-core columnar storage
Next
From: Tom Lane
Date:
Subject: Re: Zedstore - compressed in-core columnar storage