Re: pgsql: Fix precedence problem in new Perl code. - Mailing list pgsql-committers

From Mike Blackwell
Subject Re: pgsql: Fix precedence problem in new Perl code.
Date
Msg-id CANPAkgtJL8KbY1c9nyuAkfLjZYSUhU9zM2xWgLgGDTvFggvJWg@mail.gmail.com
Whole thread Raw
In response to pgsql: Fix precedence problem in new Perl code.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: Fix precedence problem in new Perl code.
List pgsql-committers
In my experience, that would more commonly be written with the lower precedence "or" operator (with or without the param list parens):

 unlink $temp_name or die "unlink: $temp_name: $!";

__________________________________________________________________________________
Mike Blackwell | Technical Analyst, Distribution Services/Rollout Management | RRD
1750 Wallace Ave | St Charles, IL 60174-3401
Office: 630.313.7818
Mike.Blackwell@rrd.com
http://www.rrdonnelley.com



On Fri, May 4, 2018 at 8:46 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Fix precedence problem in new Perl code.

I think this bit of commit 1f1cd9b5d didn't do quite what I meant :-(

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/59cb323053f4ed582d4e71acaeb5770603f074db

Modified Files
--------------
src/backend/catalog/Catalog.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix precedence problem in new Perl code.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Fix precedence problem in new Perl code.