pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8.
@ 2016-11-08 01:31 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Noah Misch @ 2016-11-08 01:31 UTC (permalink / raw)
  To: pgsql-committers

Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8.

In each case, absence of a trailing newline would itself constitute a
PostgreSQL bug.  Therefore, this slightly enhances the changed tests.
This works around a bug that last appeared in Perl 5.8.8, fixing
src/test/modules/test_pg_dump when run against that version.  Commit
e7293e3271bf618eeb2d4779a15fc516a69fe463 worked around the bug, but the
subsequent addition of test_pg_dump introduced affected code.  As that
commit had shown, slight increases in pattern complexity can suppress
the bug.  This commit edits qr/foo$/m patterns too complex to encounter
the bug today, for style consistency and robustness against unrelated
pattern changes.  Back-patch to 9.6, where test_pg_dump was introduced.

As of this writing, a fresh MSYS installation includes an affected Perl
5.8.8.  The Perl 5.8.8 in Red Hat Enterprise Linux 5.11 carries a patch
that renders it unaffected, but the Perl 5.8.5 of Red Hat Enterprise
Linux 4.4 is affected.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/650b96707672599e290c982dd63e3a896dbbaba6

Modified Files
--------------
src/bin/pg_basebackup/t/010_pg_basebackup.pl |  8 ++---
src/test/modules/test_pg_dump/t/001_base.pl  | 48 ++++++++++++++--------------
src/test/perl/README                         |  4 +++
src/tools/msvc/Project.pm                    |  2 +-
4 files changed, 32 insertions(+), 30 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8.
@ 2016-11-08 01:31 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Noah Misch @ 2016-11-08 01:31 UTC (permalink / raw)
  To: pgsql-committers

Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8.

In each case, absence of a trailing newline would itself constitute a
PostgreSQL bug.  Therefore, this slightly enhances the changed tests.
This works around a bug that last appeared in Perl 5.8.8, fixing
src/test/modules/test_pg_dump when run against that version.  Commit
e7293e3271bf618eeb2d4779a15fc516a69fe463 worked around the bug, but the
subsequent addition of test_pg_dump introduced affected code.  As that
commit had shown, slight increases in pattern complexity can suppress
the bug.  This commit edits qr/foo$/m patterns too complex to encounter
the bug today, for style consistency and robustness against unrelated
pattern changes.  Back-patch to 9.6, where test_pg_dump was introduced.

As of this writing, a fresh MSYS installation includes an affected Perl
5.8.8.  The Perl 5.8.8 in Red Hat Enterprise Linux 5.11 carries a patch
that renders it unaffected, but the Perl 5.8.5 of Red Hat Enterprise
Linux 4.4 is affected.

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/91ba77c722928429ebdb042075f7c0bf9d50cf34

Modified Files
--------------
src/bin/pg_basebackup/t/010_pg_basebackup.pl |  8 ++---
src/test/modules/test_pg_dump/t/001_base.pl  | 48 ++++++++++++++--------------
src/test/perl/README                         |  4 +++
src/tools/msvc/Project.pm                    |  2 +-
4 files changed, 32 insertions(+), 30 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-11-08 01:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 01:31 pgsql: Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8. Noah Misch <noah@leadboat.com>
2016-11-08 01:31 pgsql: Change qr/foo$/m to qr/foo\n/m, for Perl 5.8.8. Noah Misch <noah@leadboat.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox