• Simon Riggs's avatar
    Reduce lock levels of some trigger DDL and add FKs · 0ef0396a
    Simon Riggs authored
    Reduce lock levels to ShareRowExclusive for the following SQL
     CREATE TRIGGER (but not DROP or ALTER)
     ALTER TABLE ENABLE TRIGGER
     ALTER TABLE DISABLE TRIGGER
     ALTER TABLE … ADD CONSTRAINT FOREIGN KEY
    
    Original work by Simon Riggs, extracted and refreshed by Andreas Karlsson
    New test cases added by Andreas Karlsson
    Reviewed by Noah Misch, Andres Freund, Michael Paquier and Simon Riggs
    0ef0396a
alter-table-1.out 96.9 KB