pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Work around Msys weakness in Testlib.pm's command_like()
Date: Mon, 31 Jul 2017 15:30:35 -0400
Message-ID: <8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com> (raw)
In-Reply-To: <E1daYrk-0004I7-Fx@gemulon.postgresql.org>
References: <E1daYrk-0004I7-Fx@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 7/26/17 22:49, Andrew Dunstan wrote:
> Work around Msys weakness in Testlib.pm's command_like()
> 
> When output of IPC::Run::run () is redirected to scalar references, in
> certain circumstances the Msys perl does not correctly detect that the
> end of file has been seen, making the test hang indefinitely. One such
> circumstance is when the command is 'pg_ctl start', and such a change
> was made in commit f13ea95f9e. The workaround, which only applies on
> MSys, is to redirect the output to temporary files and then read them in
> when the process has finished.

This commit message contains interesting information that would be
useful to record in a code comment.  Otherwise it's not really clear
when or why to use the "safe" variant.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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



view thread (2+ messages)

Message-ID: <8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com>
Permalink:  ../8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com/
Also on:    postgresql.org/message-id/8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, andrew@dunslane.net
  Subject: Re: pgsql: Work around Msys weakness in Testlib.pm's command_like()
  In-Reply-To: <8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com>
  References: <E1daYrk-0004I7-Fx@gemulon.postgresql.org> <8123c31c-5e70-caf7-76ed-6d9d5cd5b8a3@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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