Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Here's an updated patch fixing all of the above. I stole your first
> test case and added it to regression, after some editorialization.
I've probably created some merge conflicts for you in process of fixing
the FOREIGN KEY NOT VALID patch, but in any case you need to change this
to use ConstraintAttributeSpec rather than a duplicate production.
regards, tom lane