[HACKERS] TAP: fix undefined var warnings in PostgresNode with timeout - Mailing list pgsql-hackers

From Craig Ringer
Subject [HACKERS] TAP: fix undefined var warnings in PostgresNode with timeout
Date
Msg-id CAMsr+YGqOdSXQfa8jX3k=dgii+FpVy07upbAEhfpPLWREc_SJQ@mail.gmail.com
Whole thread Raw
List pgsql-hackers
If PostgresNode::psql (from the TAP framework) is called with a
timeout set and a timed_out reference, it will attempt to do bitwise
AND and bitshifts on the $ret value from IPC::Run, which is undef if
the command timed out.

This produces annoying errors in the logs.

Fix attached. Should be applied to 9.6 and pg 10.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] index-only count(*) for indexes supporting bitmap scans
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] TAP tests take a long time