Dmitry Koval <[email protected]> writes:
> I want to send the patch to Commitfest, so the version changed:
> [1] -> [2] (for cfbot).
I looked this over and concluded that actually, Joseph Koshakow's
proposal upthread is the correct one: just delete the faulty
Assert. If we fall through and let the caller retry, we get
exactly the same behavior as in the non-partition-movement case,
so I'm prepared to accept that behavior as correct. Moreover,
I guess users think so too, because this code is pretty old yet
we've heard no complaints about the production (no-Asserts)
behavior. If we started to throw an error where we hadn't
before, I bet we *would* get complaints.
Also, I realized that we don't really need an injection point
to demonstrate the assertion failure: it's sufficient to make
the other session lock the tuple with SELECT FOR UPDATE before
we start the INSERT. This is good because it's simpler and
it lets the test be back-patched all the way.
Pushed at 4b760a181 et al.
regards, tom lane