|
448 | 448 | }, |
449 | 449 |
|
450 | 450 | 'ALTER COLLATION test0 OWNER TO' => { |
451 | | - regexp => qr/^ALTER COLLATION public.test0 OWNER TO .*;/m, |
| 451 | + regexp => qr/^\QALTER COLLATION public.test0 OWNER TO \E.*;/m, |
452 | 452 | collation => 1, |
453 | 453 | like => { %full_runs, section_pre_data => 1, }, |
454 | 454 | unlike => { %dump_test_schema_runs, no_owner => 1, }, |
|
757 | 757 | }, |
758 | 758 |
|
759 | 759 | 'ALTER TABLE test_table OWNER TO' => { |
760 | | - regexp => qr/^ALTER TABLE dump_test.test_table OWNER TO .*;/m, |
| 760 | + regexp => qr/^\QALTER TABLE dump_test.test_table OWNER TO \E.*;/m, |
761 | 761 | like => { |
762 | 762 | %full_runs, |
763 | 763 | %dump_test_schema_runs, |
|
776 | 776 | create_sql => 'ALTER TABLE dump_test.test_table |
777 | 777 | ENABLE ROW LEVEL SECURITY;', |
778 | 778 | regexp => |
779 | | - qr/^ALTER TABLE dump_test.test_table ENABLE ROW LEVEL SECURITY;/m, |
| 779 | + qr/^\QALTER TABLE dump_test.test_table ENABLE ROW LEVEL SECURITY;\E/m, |
780 | 780 | like => { |
781 | 781 | %full_runs, |
782 | 782 | %dump_test_schema_runs, |
|
790 | 790 | }, |
791 | 791 |
|
792 | 792 | 'ALTER TABLE test_second_table OWNER TO' => { |
793 | | - regexp => qr/^ALTER TABLE dump_test.test_second_table OWNER TO .*;/m, |
| 793 | + regexp => qr/^\QALTER TABLE dump_test.test_second_table OWNER TO \E.*;/m, |
794 | 794 | like => |
795 | 795 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
796 | 796 | unlike => { |
|
800 | 800 | }, |
801 | 801 |
|
802 | 802 | 'ALTER TABLE measurement OWNER TO' => { |
803 | | - regexp => qr/^ALTER TABLE dump_test.measurement OWNER TO .*;/m, |
| 803 | + regexp => qr/^\QALTER TABLE dump_test.measurement OWNER TO \E.*;/m, |
804 | 804 | like => |
805 | 805 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
806 | 806 | unlike => { |
|
811 | 811 |
|
812 | 812 | 'ALTER TABLE measurement_y2006m2 OWNER TO' => { |
813 | 813 | regexp => |
814 | | - qr/^ALTER TABLE dump_test_second_schema.measurement_y2006m2 OWNER TO .*;/m, |
| 814 | + qr/^\QALTER TABLE dump_test_second_schema.measurement_y2006m2 OWNER TO \E.*;/m, |
815 | 815 | like => { |
816 | 816 | %full_runs, |
817 | 817 | role => 1, |
|
822 | 822 |
|
823 | 823 | 'ALTER FOREIGN TABLE foreign_table OWNER TO' => { |
824 | 824 | regexp => |
825 | | - qr/^ALTER FOREIGN TABLE dump_test.foreign_table OWNER TO .*;/m, |
| 825 | + qr/^\QALTER FOREIGN TABLE dump_test.foreign_table OWNER TO \E.*;/m, |
826 | 826 | like => |
827 | 827 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
828 | 828 | unlike => { |
|
833 | 833 |
|
834 | 834 | 'ALTER TEXT SEARCH CONFIGURATION alt_ts_conf1 OWNER TO' => { |
835 | 835 | regexp => |
836 | | - qr/^ALTER TEXT SEARCH CONFIGURATION dump_test.alt_ts_conf1 OWNER TO .*;/m, |
| 836 | + qr/^\QALTER TEXT SEARCH CONFIGURATION dump_test.alt_ts_conf1 OWNER TO \E.*;/m, |
837 | 837 | like => |
838 | 838 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
839 | 839 | unlike => { |
|
844 | 844 |
|
845 | 845 | 'ALTER TEXT SEARCH DICTIONARY alt_ts_dict1 OWNER TO' => { |
846 | 846 | regexp => |
847 | | - qr/^ALTER TEXT SEARCH DICTIONARY dump_test.alt_ts_dict1 OWNER TO .*;/m, |
| 847 | + qr/^\QALTER TEXT SEARCH DICTIONARY dump_test.alt_ts_dict1 OWNER TO \E.*;/m, |
848 | 848 | like => |
849 | 849 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
850 | 850 | unlike => { |
|
913 | 913 | create_sql => 'COMMENT ON TABLE dump_test.test_table |
914 | 914 | IS \'comment on table\';', |
915 | 915 | regexp => |
916 | | - qr/^COMMENT ON TABLE dump_test.test_table IS 'comment on table';/m, |
| 916 | + qr/^\QCOMMENT ON TABLE dump_test.test_table IS 'comment on table';\E/m, |
917 | 917 | like => { |
918 | 918 | %full_runs, |
919 | 919 | %dump_test_schema_runs, |
|
986 | 986 | create_sql => 'COMMENT ON CONVERSION dump_test.test_conversion |
987 | 987 | IS \'comment on test conversion\';', |
988 | 988 | regexp => |
989 | | - qr/^COMMENT ON CONVERSION dump_test.test_conversion IS 'comment on test conversion';/m, |
| 989 | + qr/^\QCOMMENT ON CONVERSION dump_test.test_conversion IS 'comment on test conversion';\E/m, |
990 | 990 | like => |
991 | 991 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
992 | 992 | unlike => { exclude_dump_test_schema => 1, }, |
|
997 | 997 | create_sql => 'COMMENT ON COLLATION test0 |
998 | 998 | IS \'comment on test0 collation\';', |
999 | 999 | regexp => |
1000 | | - qr/^COMMENT ON COLLATION public.test0 IS 'comment on test0 collation';/m, |
| 1000 | + qr/^\QCOMMENT ON COLLATION public.test0 IS 'comment on test0 collation';\E/m, |
1001 | 1001 | collation => 1, |
1002 | 1002 | like => { %full_runs, section_pre_data => 1, }, |
1003 | 1003 | }, |
|
1051 | 1051 | 'COMMENT ON TEXT SEARCH CONFIGURATION dump_test.alt_ts_conf1 |
1052 | 1052 | IS \'comment on text search configuration\';', |
1053 | 1053 | regexp => |
1054 | | - qr/^COMMENT ON TEXT SEARCH CONFIGURATION dump_test.alt_ts_conf1 IS 'comment on text search configuration';/m, |
| 1054 | + qr/^\QCOMMENT ON TEXT SEARCH CONFIGURATION dump_test.alt_ts_conf1 IS 'comment on text search configuration';\E/m, |
1055 | 1055 | like => |
1056 | 1056 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1057 | 1057 | unlike => { exclude_dump_test_schema => 1, }, |
|
1063 | 1063 | 'COMMENT ON TEXT SEARCH DICTIONARY dump_test.alt_ts_dict1 |
1064 | 1064 | IS \'comment on text search dictionary\';', |
1065 | 1065 | regexp => |
1066 | | - qr/^COMMENT ON TEXT SEARCH DICTIONARY dump_test.alt_ts_dict1 IS 'comment on text search dictionary';/m, |
| 1066 | + qr/^\QCOMMENT ON TEXT SEARCH DICTIONARY dump_test.alt_ts_dict1 IS 'comment on text search dictionary';\E/m, |
1067 | 1067 | like => |
1068 | 1068 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1069 | 1069 | unlike => { exclude_dump_test_schema => 1, }, |
|
1074 | 1074 | create_sql => 'COMMENT ON TEXT SEARCH PARSER dump_test.alt_ts_prs1 |
1075 | 1075 | IS \'comment on text search parser\';', |
1076 | 1076 | regexp => |
1077 | | - qr/^COMMENT ON TEXT SEARCH PARSER dump_test.alt_ts_prs1 IS 'comment on text search parser';/m, |
| 1077 | + qr/^\QCOMMENT ON TEXT SEARCH PARSER dump_test.alt_ts_prs1 IS 'comment on text search parser';\E/m, |
1078 | 1078 | like => |
1079 | 1079 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1080 | 1080 | unlike => { exclude_dump_test_schema => 1, }, |
|
1085 | 1085 | create_sql => 'COMMENT ON TEXT SEARCH TEMPLATE dump_test.alt_ts_temp1 |
1086 | 1086 | IS \'comment on text search template\';', |
1087 | 1087 | regexp => |
1088 | | - qr/^COMMENT ON TEXT SEARCH TEMPLATE dump_test.alt_ts_temp1 IS 'comment on text search template';/m, |
| 1088 | + qr/^\QCOMMENT ON TEXT SEARCH TEMPLATE dump_test.alt_ts_temp1 IS 'comment on text search template';\E/m, |
1089 | 1089 | like => |
1090 | 1090 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1091 | 1091 | unlike => { exclude_dump_test_schema => 1, }, |
|
1096 | 1096 | create_sql => 'COMMENT ON TYPE dump_test.planets |
1097 | 1097 | IS \'comment on enum type\';', |
1098 | 1098 | regexp => |
1099 | | - qr/^COMMENT ON TYPE dump_test.planets IS 'comment on enum type';/m, |
| 1099 | + qr/^\QCOMMENT ON TYPE dump_test.planets IS 'comment on enum type';\E/m, |
1100 | 1100 | like => |
1101 | 1101 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1102 | 1102 | unlike => { exclude_dump_test_schema => 1, }, |
|
1107 | 1107 | create_sql => 'COMMENT ON TYPE dump_test.textrange |
1108 | 1108 | IS \'comment on range type\';', |
1109 | 1109 | regexp => |
1110 | | - qr/^COMMENT ON TYPE dump_test.textrange IS 'comment on range type';/m, |
| 1110 | + qr/^\QCOMMENT ON TYPE dump_test.textrange IS 'comment on range type';\E/m, |
1111 | 1111 | like => |
1112 | 1112 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1113 | 1113 | unlike => { exclude_dump_test_schema => 1, }, |
|
1118 | 1118 | create_sql => 'COMMENT ON TYPE dump_test.int42 |
1119 | 1119 | IS \'comment on regular type\';', |
1120 | 1120 | regexp => |
1121 | | - qr/^COMMENT ON TYPE dump_test.int42 IS 'comment on regular type';/m, |
| 1121 | + qr/^\QCOMMENT ON TYPE dump_test.int42 IS 'comment on regular type';\E/m, |
1122 | 1122 | like => |
1123 | 1123 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1124 | 1124 | unlike => { exclude_dump_test_schema => 1, }, |
|
1129 | 1129 | create_sql => 'COMMENT ON TYPE dump_test.undefined |
1130 | 1130 | IS \'comment on undefined type\';', |
1131 | 1131 | regexp => |
1132 | | - qr/^COMMENT ON TYPE dump_test.undefined IS 'comment on undefined type';/m, |
| 1132 | + qr/^\QCOMMENT ON TYPE dump_test.undefined IS 'comment on undefined type';\E/m, |
1133 | 1133 | like => |
1134 | 1134 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1135 | 1135 | unlike => { exclude_dump_test_schema => 1, }, |
|
1282 | 1282 |
|
1283 | 1283 | 'INSERT INTO test_table' => { |
1284 | 1284 | regexp => qr/^ |
1285 | | - (?:INSERT\ INTO\ dump_test.test_table\ \(col1,\ col2,\ col3,\ col4\)\ VALUES\ \(\d,\ NULL,\ NULL,\ NULL\);\n){9} |
| 1285 | + (?:INSERT\ INTO\ dump_test\.test_table\ \(col1,\ col2,\ col3,\ col4\)\ VALUES\ \(\d,\ NULL,\ NULL,\ NULL\);\n){9} |
1286 | 1286 | /xm, |
1287 | 1287 | like => { column_inserts => 1, }, |
1288 | 1288 | }, |
1289 | 1289 |
|
1290 | 1290 | 'INSERT INTO test_second_table' => { |
1291 | 1291 | regexp => qr/^ |
1292 | | - (?:INSERT\ INTO\ dump_test.test_second_table\ \(col1,\ col2\) |
| 1292 | + (?:INSERT\ INTO\ dump_test\.test_second_table\ \(col1,\ col2\) |
1293 | 1293 | \ VALUES\ \(\d,\ '\d'\);\n){9}/xm, |
1294 | 1294 | like => { column_inserts => 1, }, |
1295 | 1295 | }, |
|
1620 | 1620 | 'CREATE TYPE dump_test.int42' => { |
1621 | 1621 | create_order => 39, |
1622 | 1622 | create_sql => 'CREATE TYPE dump_test.int42;', |
1623 | | - regexp => qr/^CREATE TYPE dump_test.int42;/m, |
| 1623 | + regexp => qr/^\QCREATE TYPE dump_test.int42;\E/m, |
1624 | 1624 | like => |
1625 | 1625 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1626 | 1626 | unlike => { exclude_dump_test_schema => 1, }, |
|
1832 | 1832 | 'CREATE TYPE dump_test.undefined' => { |
1833 | 1833 | create_order => 39, |
1834 | 1834 | create_sql => 'CREATE TYPE dump_test.undefined;', |
1835 | | - regexp => qr/^CREATE TYPE dump_test.undefined;/m, |
| 1835 | + regexp => qr/^\QCREATE TYPE dump_test.undefined;\E/m, |
1836 | 1836 | like => |
1837 | 1837 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
1838 | 1838 | unlike => { exclude_dump_test_schema => 1, }, |
|
2770 | 2770 | create_sql => 'GRANT SELECT ON TABLE dump_test.test_table |
2771 | 2771 | TO regress_dump_test_role;', |
2772 | 2772 | regexp => |
2773 | | - qr/^GRANT SELECT ON TABLE dump_test.test_table TO regress_dump_test_role;/m, |
| 2773 | + qr/^\QGRANT SELECT ON TABLE dump_test.test_table TO regress_dump_test_role;\E/m, |
2774 | 2774 | like => { |
2775 | 2775 | %full_runs, |
2776 | 2776 | %dump_test_schema_runs, |
|
2790 | 2790 | TABLE dump_test.measurement |
2791 | 2791 | TO regress_dump_test_role;', |
2792 | 2792 | regexp => |
2793 | | - qr/^GRANT SELECT ON TABLE dump_test.measurement TO regress_dump_test_role;/m, |
| 2793 | + qr/^\QGRANT SELECT ON TABLE dump_test.measurement TO regress_dump_test_role;\E/m, |
2794 | 2794 | like => |
2795 | 2795 | { %full_runs, %dump_test_schema_runs, section_pre_data => 1, }, |
2796 | 2796 | unlike => { |
|
2805 | 2805 | TABLE dump_test_second_schema.measurement_y2006m2 |
2806 | 2806 | TO regress_dump_test_role;', |
2807 | 2807 | regexp => |
2808 | | - qr/^GRANT SELECT ON TABLE dump_test_second_schema.measurement_y2006m2 TO regress_dump_test_role;/m, |
| 2808 | + qr/^\QGRANT SELECT ON TABLE dump_test_second_schema.measurement_y2006m2 TO regress_dump_test_role;\E/m, |
2809 | 2809 | like => { |
2810 | 2810 | %full_runs, |
2811 | 2811 | role => 1, |
|
2948 | 2948 | }, |
2949 | 2949 |
|
2950 | 2950 | 'REFRESH MATERIALIZED VIEW matview' => { |
2951 | | - regexp => qr/^REFRESH MATERIALIZED VIEW dump_test.matview;/m, |
| 2951 | + regexp => qr/^\QREFRESH MATERIALIZED VIEW dump_test.matview;\E/m, |
2952 | 2952 | like => |
2953 | 2953 | { %full_runs, %dump_test_schema_runs, section_post_data => 1, }, |
2954 | 2954 | unlike => { |
|
3015 | 3015 | create_order => 45, |
3016 | 3016 | create_sql => 'REVOKE SELECT ON TABLE pg_proc FROM public;', |
3017 | 3017 | regexp => |
3018 | | - qr/^REVOKE SELECT ON TABLE pg_catalog.pg_proc FROM PUBLIC;/m, |
| 3018 | + qr/^\QREVOKE SELECT ON TABLE pg_catalog.pg_proc FROM PUBLIC;\E/m, |
3019 | 3019 | like => { %full_runs, section_pre_data => 1, }, |
3020 | 3020 | unlike => { no_privs => 1, }, |
3021 | 3021 | }, |
|
0 commit comments