Re: invalid tid errors in latest 7.3.4 stable.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: archeron(at)wavefire(dot)com, Chris Kratz <chris(dot)kratz(at)vistashare(dot)com>, pgsql-hackers(at)postgresql(dot)org, Jan Wieck <JanWieck(at)Yahoo(dot)com>
Subject: Re: invalid tid errors in latest 7.3.4 stable.
Date: 2003-09-30 23:14:25
Message-ID: 23733.1064963665@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> writes:
> On Tue, 30 Sep 2003, Tom Lane wrote:
>> ... Note that this implementation
>> means that case 3 will not throw errors, because such rows will be
>> ignored by the scan. I think this is an okay tradeoff for getting the
>> other cases right.

> It's probably better than the current situation anyway. I think that it'd
> be revisitable if someone wanted to bring it up later.

It might be possible to hack things so that the scans will return
tuples that are visible according to either of two snapshots. However
this would be considerably less localized a change than what I had in
mind, and it still doesn't really make things watertight. (For example,
imagine that a conflicting tuple is created by transaction B and then
deleted by transaction C, all while our own serializable transaction is
running. Arguably we should throw an error, but there's no way to find
that tuple using either our transaction-start or our transaction-end
snapshot.)

> I'd have figured that this would be a bigger deal to implement cleanly,
> but if it isn't, then it sounds good. I'm a little worried because
> there's been talk of beta and this going in now for fear of breaking
> something worse than it already is, but if you think that it's safe
> enough.

I think I can implement it and it will act as stated in my proposal.
Whether people like the proposed behavior is the big question in my
mind. (Hope Marc gets the mail lists back online soon ...)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2003-09-30 23:33:16 Re: invalid tid errors in latest 7.3.4 stable.
Previous Message Stephan Szabo 2003-09-30 22:45:45 Re: invalid tid errors in latest 7.3.4 stable.