Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> Attached is a patch enforcing this order and adding some comments to
> make it clear why the order matters here.
> Barring objections I'll back-patch this to 9.4 where WCO was added.
Looks reasonable in a quick once-over. I didn't test it.
regards, tom lane