Stephen Frost <sfr...@snowman.net> writes: > * Tom Lane (t...@sss.pgh.pa.us) wrote: >> I did not look at the patch yet, but TBH if it uses SPI for sub-operations >> of ALTER TABLE I think that is sufficient reason to reject it out of hand.
> You mean like what ALTER TABLE ... ADD FOREIGN KEY does? Yeah, and if you look at the warts that SPI has grown to support that usage, you'll see why I'm so unhappy. We should never have allowed FKs to be built on top of SPI; they require semantics that don't exist in SQL. I think this would lead to more of the same --- not exactly the same of course, but more warts. See Robert's nearby musings about semantics of index null checks for an example. regards, tom lane