DROP TABLE IF EXISTS FKTABLEFORARRAY;
CREATE TABLE FKTABLEFORARRAY (ftest1 int PRIMARY KEY, ftest2 int[]);
ALTER TABLE FKTABLEFORARRAY ADD CONSTRAINT FKARRAY FOREIGN KEY (EACH ELEMENT OF ftest2) REFERENCES PKTABLEFORARRAY;
INSERT INTO FKTABLEFORARRAY VALUES (1, '{905, 106, 949}');
INSERT INTO FKTABLEFORARRAY VALUES (2, '{212, 803, 380, 387}');
INSERT INTO FKTABLEFORARRAY VALUES (3, '{937, 388}');
INSERT INTO FKTABLEFORARRAY VALUES (4, '{192, 416}');
INSERT INTO FKTABLEFORARRAY VALUES (5, '{356, 301, 372, 214, 959}');
INSERT INTO FKTABLEFORARRAY VALUES (6, '{201}');
INSERT INTO FKTABLEFORARRAY VALUES (7, '{458, 437}');
INSERT INTO FKTABLEFORARRAY VALUES (8, '{802, 414, 964, 182}');
INSERT INTO FKTABLEFORARRAY VALUES (9, '{216}');
INSERT INTO FKTABLEFORARRAY VALUES (10, '{922}');
INSERT INTO FKTABLEFORARRAY VALUES (11, '{21, 149}');
INSERT INTO FKTABLEFORARRAY VALUES (12, '{606}');
INSERT INTO FKTABLEFORARRAY VALUES (13, '{713, 300}');
INSERT INTO FKTABLEFORARRAY VALUES (14, '{998}');
INSERT INTO FKTABLEFORARRAY VALUES (15, '{241, 489, 958, 521}');
INSERT INTO FKTABLEFORARRAY VALUES (16, '{888, 420, 902}');
INSERT INTO FKTABLEFORARRAY VALUES (17, '{458, 251, 509}');
INSERT INTO FKTABLEFORARRAY VALUES (18, '{486, 491, 140, 588, 88}');
INSERT INTO FKTABLEFORARRAY VALUES (19, '{401, 538, 870}');
INSERT INTO FKTABLEFORARRAY VALUES (20, '{453, 806, 230, 816, 310}');
INSERT INTO FKTABLEFORARRAY VALUES (21, '{794, 283, 885, 327}');
INSERT INTO FKTABLEFORARRAY VALUES (22, '{952, 633, 975}');
INSERT INTO FKTABLEFORARRAY VALUES (23, '{472, 837}');
INSERT INTO FKTABLEFORARRAY VALUES (24, '{881, 322, 868}');
INSERT INTO FKTABLEFORARRAY VALUES (25, '{452, 198}');
INSERT INTO FKTABLEFORARRAY VALUES (26, '{266, 619, 268, 588, 694}');
INSERT INTO FKTABLEFORARRAY VALUES (27, '{811, 268, 14, 690, 916}');
INSERT INTO FKTABLEFORARRAY VALUES (28, '{96, 728, 818, 632, 415}');
INSERT INTO FKTABLEFORARRAY VALUES (29, '{633, 554, 291, 278}');
INSERT INTO FKTABLEFORARRAY VALUES (30, '{450, 515, 104, 277, 223}');
INSERT INTO FKTABLEFORARRAY VALUES (31, '{480, 316, 477}');
INSERT INTO FKTABLEFORARRAY VALUES (32, '{930, 40, 847, 945, 985}');
INSERT INTO FKTABLEFORARRAY VALUES (33, '{326, 908, 757, 377, 700}');
INSERT INTO FKTABLEFORARRAY VALUES (34, '{944, 915, 846}');
INSERT INTO FKTABLEFORARRAY VALUES (35, '{193}');
INSERT INTO FKTABLEFORARRAY VALUES (36, '{928, 557}');
INSERT INTO FKTABLEFORARRAY VALUES (37, '{972, 327}');
INSERT INTO FKTABLEFORARRAY VALUES (38, '{961, 226, 686}');
INSERT INTO FKTABLEFORARRAY VALUES (39, '{24}');
INSERT INTO FKTABLEFORARRAY VALUES (40, '{179}');
INSERT INTO FKTABLEFORARRAY VALUES (41, '{295}');
INSERT INTO FKTABLEFORARRAY VALUES (42, '{298, 290}');
INSERT INTO FKTABLEFORARRAY VALUES (43, '{106, 955}');
INSERT INTO FKTABLEFORARRAY VALUES (44, '{56}');
INSERT INTO FKTABLEFORARRAY VALUES (45, '{325}');
INSERT INTO FKTABLEFORARRAY VALUES (46, '{80, 804, 333, 438}');
INSERT INTO FKTABLEFORARRAY VALUES (47, '{352, 410, 44, 774}');
INSERT INTO FKTABLEFORARRAY VALUES (48, '{449, 58, 779, 615}');
INSERT INTO FKTABLEFORARRAY VALUES (49, '{216}');
INSERT INTO FKTABLEFORARRAY VALUES (50, '{217, 604, 245, 287}');
INSERT INTO FKTABLEFORARRAY VALUES (51, '{703}');
INSERT INTO FKTABLEFORARRAY VALUES (52, '{130, 108, 246, 983}');
INSERT INTO FKTABLEFORARRAY VALUES (53, '{302, 569, 842, 182}');
INSERT INTO FKTABLEFORARRAY VALUES (54, '{716}');
INSERT INTO FKTABLEFORARRAY VALUES (55, '{808, 937, 589}');
INSERT INTO FKTABLEFORARRAY VALUES (56, '{873, 812, 237}');
INSERT INTO FKTABLEFORARRAY VALUES (57, '{514}');
INSERT INTO FKTABLEFORARRAY VALUES (58, '{848, 489, 436, 981}');
INSERT INTO FKTABLEFORARRAY VALUES (59, '{90}');
INSERT INTO FKTABLEFORARRAY VALUES (60, '{613}');
INSERT INTO FKTABLEFORARRAY VALUES (61, '{49, 782}');
INSERT INTO FKTABLEFORARRAY VALUES (62, '{200, 553, 294}');
INSERT INTO FKTABLEFORARRAY VALUES (63, '{538, 455}');
INSERT INTO FKTABLEFORARRAY VALUES (64, '{243}');
INSERT INTO FKTABLEFORARRAY VALUES (65, '{716, 173, 474, 669, 510}');
INSERT INTO FKTABLEFORARRAY VALUES (66, '{117, 341, 917}');
INSERT INTO FKTABLEFORARRAY VALUES (67, '{73, 50, 363}');
INSERT INTO FKTABLEFORARRAY VALUES (68, '{176, 600, 11, 206}');
INSERT INTO FKTABLEFORARRAY VALUES (69, '{324, 423, 712, 878, 21}');
INSERT INTO FKTABLEFORARRAY VALUES (70, '{805, 329, 685, 373, 923}');
INSERT INTO FKTABLEFORARRAY VALUES (71, '{690, 644}');
INSERT INTO FKTABLEFORARRAY VALUES (72, '{716, 116, 405, 377, 283}');
INSERT INTO FKTABLEFORARRAY VALUES (73, '{560, 32, 724, 615}');
INSERT INTO FKTABLEFORARRAY VALUES (74, '{604}');
INSERT INTO FKTABLEFORARRAY VALUES (75, '{768}');
INSERT INTO FKTABLEFORARRAY VALUES (76, '{617, 469}');
INSERT INTO FKTABLEFORARRAY VALUES (77, '{972, 595, 923, 445, 638}');
INSERT INTO FKTABLEFORARRAY VALUES (78, '{232, 209, 149, 638}');
INSERT INTO FKTABLEFORARRAY VALUES (79, '{67, 423, 651, 530, 759}');
INSERT INTO FKTABLEFORARRAY VALUES (80, '{802, 292, 716, 627, 249}');
INSERT INTO FKTABLEFORARRAY VALUES (81, '{871, 21, 814, 703}');
INSERT INTO FKTABLEFORARRAY VALUES (82, '{968, 394, 941}');
INSERT INTO FKTABLEFORARRAY VALUES (83, '{928, 609, 230, 526, 383}');
INSERT INTO FKTABLEFORARRAY VALUES (84, '{102, 22}');
INSERT INTO FKTABLEFORARRAY VALUES (85, '{91, 981}');
INSERT INTO FKTABLEFORARRAY VALUES (86, '{424, 755}');
INSERT INTO FKTABLEFORARRAY VALUES (87, '{705, 227, 69, 462}');
INSERT INTO FKTABLEFORARRAY VALUES (88, '{690, 468}');
INSERT INTO FKTABLEFORARRAY VALUES (89, '{305, 874, 395}');
INSERT INTO FKTABLEFORARRAY VALUES (90, '{194}');
INSERT INTO FKTABLEFORARRAY VALUES (91, '{407}');
INSERT INTO FKTABLEFORARRAY VALUES (92, '{405}');
INSERT INTO FKTABLEFORARRAY VALUES (93, '{873, 124, 246}');
INSERT INTO FKTABLEFORARRAY VALUES (94, '{94, 383}');
INSERT INTO FKTABLEFORARRAY VALUES (95, '{448, 803, 622, 336, 884}');
INSERT INTO FKTABLEFORARRAY VALUES (96, '{801}');
INSERT INTO FKTABLEFORARRAY VALUES (97, '{689, 522, 149}');
INSERT INTO FKTABLEFORARRAY VALUES (98, '{779}');
INSERT INTO FKTABLEFORARRAY VALUES (99, '{4, 935, 266, 907, 791}');
INSERT INTO FKTABLEFORARRAY VALUES (100, '{973, 257, 75, 477}');
