Skip to content

Commit 143f0e4

Browse files
Add fuzz seeds for pg create rule
1 parent 14cc7af commit 143f0e4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CREATE RULE r AS ON DELETE TO docs DO INSTEAD NOTHING;
2+
CREATE OR REPLACE RULE r AS ON SELECT TO t DO ALSO NOTHING;
3+
CREATE RULE r AS ON INSERT TO s1.t DO NOTHING;
4+
CREATE RULE r AS ON UPDATE TO t WHERE quantity > 100 DO ALSO INSERT INTO audit (id) VALUES (1);
5+
CREATE RULE r AS ON DELETE TO t DO INSTEAD (UPDATE t2 SET deleted = 1 WHERE id = 1; DELETE FROM t3)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE RULE notify_me AS ON UPDATE TO mytable DO ALSO NOTIFY mytable

0 commit comments

Comments
 (0)