]> granicus.if.org Git - pgm/commitdiff
add fk to queue
authorNathan Wagner <nw@hydaspes.if.org>
Mon, 4 Oct 2021 14:20:01 +0000 (09:20 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 4 Oct 2021 14:20:01 +0000 (09:20 -0500)
tables/create.sql

index 9e2c6c18b9209304702ce05c4ec6b417cfb4492c..83a0fd30c53106cfc4dad0a8c34938e183585651 100644 (file)
@@ -43,7 +43,7 @@ from posting;
 -- need a separate table for deletes unless we post everything
 
 create table queue (
-       table_oid regclass,
+       table_oid regclass references posting on delete cascade,
        pgroup integer default 0, -- see README.locking
        id text,
        -- id bigint,