Hello!
Thanks for the patch, but I think using SPI is still not allowed here: https://www.postgresql.org/message-id/9878.1511970441%40sss.pgh.pa.us
> if it uses SPI for sub-operations of ALTER TABLE I think that is sufficient reason to reject it out of hand.
regards, Sergei