Skip to content

Commit 48cb244

Browse files
committed
Remove literal backslash from Perl \Q ... \E.
The behavior changed sometime after Perl 5.8.9, and "man perlre" says it "may lead to confusing results." Per buildfarm member gaur. This repairs commit a7a7be1. Discussion: https://postgr.es/m/20210629053627.GA2061079@rfd.leadboat.com
1 parent 6a6389a commit 48cb244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/t/002_pg_dump.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@
14311431
'CREATE ROLE regress_quoted...' => {
14321432
create_order => 1,
14331433
create_sql => 'CREATE ROLE "regress_quoted \"" role";',
1434-
regexp => qr/^\QCREATE ROLE "regress_quoted \"" role";\E/m,
1434+
regexp => qr/^CREATE ROLE "regress_quoted \\"" role";/m,
14351435
like => {
14361436
pg_dumpall_dbprivs => 1,
14371437
pg_dumpall_exclude => 1,
@@ -3421,7 +3421,7 @@
34213421
ALTER SCHEMA public OWNER TO "regress_quoted \"" role";
34223422
REVOKE ALL ON SCHEMA public FROM "regress_quoted \"" role";',
34233423
regexp => qr/^
3424-
\QREVOKE ALL ON SCHEMA public FROM "regress_quoted \"" role";\E
3424+
\QREVOKE ALL ON SCHEMA public FROM "regress_quoted \E\\""\ role";
34253425
\n\QREVOKE ALL ON SCHEMA public FROM PUBLIC;\E
34263426
\n\QGRANT USAGE ON SCHEMA public TO PUBLIC;\E
34273427
/xm,

0 commit comments

Comments
 (0)