pgsql: Improve logic in PostgresVersion.pm

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve logic in PostgresVersion.pm
Date: 2021-04-27 12:29:00
Message-ID: E1lbMpo-0005cW-B3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve logic in PostgresVersion.pm

Handle the situation where perl swaps the order of operands of
the comparison operator. See `perldoc overload` for details:

The third argument is set to TRUE if (and only if) the two
operands have been swapped. Perl may do this to ensure that the
first argument ($self) is an object implementing the overloaded
operation, in line with general object calling conventions.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fa26eba221a9e837493df47d0255ce615129e9a8

Modified Files
--------------
src/test/perl/PostgresVersion.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-04-28 00:01:38 Re: pgsql: Implement streaming mode in ReorderBuffer.
Previous Message Fujii Masao 2021-04-27 09:40:12 pgsql: doc: Review for "Allow TRUNCATE command to truncate foreign tabl