pgsql: Fix a warning in Perl test code

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix a warning in Perl test code
Date: 2023-12-27 16:23:59
Message-ID: E1rIWhK-00CB9I-KZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix a warning in Perl test code

The code was passing a scalar argument to node->restart(), but it was
expecting a hash, which causes a warning from Perl ("Odd number of
elements in hash assignment").

But the node->restart() function doesn't take a mode argument anyway.
This was probably copied from an incorrect comment (see commit
750c59d7ec). The default restart mode is already "fast", so the test
should still be semantically correct without explicitly specifying the
mode.

Discussion: https://www.postgresql.org/message-id/e3f4bf1b-63d3-408a-b07e-d35a0fdf1b98@eisentraut.org

Branch
------
master

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

Modified Files
--------------
src/test/recovery/t/006_logical_decoding.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-12-27 16:49:21 pgsql: Fix incorrect format placeholders
Previous Message Tom Lane 2023-12-27 16:03:01 pgsql: Fix incorrect data type choices in some read and write calls.