]> granicus.if.org Git - postgresql/blobdiff - src/test/regress/sql/triggers.sql
Fix COPY's handling of transition tables with indexes.
[postgresql] / src / test / regress / sql / triggers.sql
index 659a5a1422bcd0914b59926a6887f190e6500c69..b10159a1cf2a3938ea9c51c0259b30ffcb1f721b 100644 (file)
@@ -1661,6 +1661,13 @@ BBB      42
 CCC    42
 \.
 
+-- same behavior for copy if there is an index (interesting because rows are
+-- captured by a different code path in copy.c if there are indexes)
+create index on parent(b);
+copy parent (a, b) from stdin;
+DDD    42
+\.
+
 -- DML affecting parent sees tuples collected from children even if
 -- there is no transition table trigger on the children
 drop trigger child1_insert_trig on child1;