Project

General

Profile

« Previous | Next » 

Revision 10181

schemas/util.sql: create_if_not_exists(): also ignore duplicate_object exceptions, thrown when trying to add a duplicate constraint

View differences:

schemas/util.sql
738 738
    PERFORM util.eval(sql);
739 739
EXCEPTION
740 740
    WHEN duplicate_table  THEN NULL;
741
    WHEN duplicate_object THEN NULL; -- e.g. constraint
741 742
    WHEN duplicate_column THEN NULL;
742 743
END;
743 744
$$;

Also available in: Unified diff