Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> Looks like a good plan, but I think you've overlooked something: if
> you've locked the tuple FOR UPDATE then by definition there cannot be a
> newer version, right?
Nope --- think self-update.
regards, tom lane