How to make a foreign key with a constraint on the referenced table in PostgreSQL

后端 未结 3 567
自闭症患者
自闭症患者 2021-01-05 19:59

Suppose I have the following tables

CREATE TABLE plugins (
id int primary key,
type text);

insert into plugins values (1,\'matrix\');
insert into plugins va         


        
3条回答
  •  温柔的废话
    2021-01-05 21:05

    One way of handling this is to use serializable transactions.

    http://wiki.postgresql.org/wiki/SSI#FK-Like_Constraints

提交回复
热议问题