Re: pgsql: Consistently test for in-use shared memory.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Consistently test for in-use shared memory.
Date: 2019-04-16 01:01:45
Message-ID: 28797.1555376505@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Noah Misch <noah(at)leadboat(dot)com> writes:
>> Perhaps I should write the 'SELECT 1 + 1' to a regular file and redirect input
>> from that file.

Actually ... we don't need to run a query at all do we?

Although this would only help if Perl will optimize away an attempt
to write zero bytes to the pipe, which seems likely but not certain.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2019-04-16 01:14:36 pgsql: Don't write to stdin of a test process that could have already e
Previous Message Tom Lane 2019-04-16 00:52:36 Re: pgsql: Consistently test for in-use shared memory.