Content-Length: 276256 | pFad | http://github.com/postgrespro/postgres/commit/48cb244fb9aca1620e35a14617ca5869b3ea065a

CB Remove literal backslash from Perl \Q ... \E. · postgrespro/postgres@48cb244 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/48cb244fb9aca1620e35a14617ca5869b3ea065a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy