Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZWVE-0004yz-VD for pgsql-committers@arkaria.postgresql.org; Tue, 26 Nov 2019 08:47:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZWVD-0001Lv-2e for pgsql-committers@arkaria.postgresql.org; Tue, 26 Nov 2019 08:47:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZWVB-0001Lo-Aj for pgsql-committers@lists.postgresql.org; Tue, 26 Nov 2019 08:47:18 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZWV3-0007wu-Iy for pgsql-committers@lists.postgresql.org; Tue, 26 Nov 2019 08:47:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 359349A8; Tue, 26 Nov 2019 03:47:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 26 Nov 2019 03:47:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=9znS0uxlzV6MkHzhxzTj9dGr1gt 49jOqJE6fn0PWrIk=; b=H/k56U9nyycs5cjuXdWxhaupc1wZLIHcGqsDmtd+Ao8 aIHAGSbbiVbiC9H+subFQuCBeumEmwpy6HwrG0jyJss9K5sqbFX82rWD537UnngP ZieCwQTvLJqJXV1mzyboUC2RFAsClx28YlR/G5RMssOSy3sQvWMCnTrCV+3ywFJO RDPNc2ssVqqdyJqkqFWxMuzPdSoUGYpjU+pG89xRWFU3Ua3J2/Yo0sURPts1IXR8 rYED81oUH/iOUMogaReiKmwxreeQqWs0bspsj+AFV/CrE/oGR0h6ActKYSVKyBfD NluSjEkeyXHhzFQN9kQwUCqz4dtS6hH45MUsUSzUpcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=9znS0u xlzV6MkHzhxzTj9dGr1gt49jOqJE6fn0PWrIk=; b=qtcwm1YNhhJ4ct3qjLb/fh x11D+E1ua7fdepiNZOrKv362SBwtb9QE84SmlqTFDjJpfwPhpHr8bS0LB+JGjcn8 c/iwj/6yauf6cXoTXnjfzdKS4dMj04+EwoPvluM2TVJEEzwSQVPtdSbc7RYD6qD3 gK2fUCXy/2rjRPSuQsr7RMudNzJi/n/YisA70uAfd/ixnV4MxsEjeQJYnof2c02v SHuvZfh2d2BmbxDRos1yv0XxJ/NvTC5QbA8X+Ia95Zo/gtq1ImLmi/pa/726BOJK 4hX7P5XPdpDLhF0WVxuMHc+XIe9UfOdflARxMtyJte/Wkx+PrmFfiuuAST9k1kcg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeivddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgr rhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 5F41E306005E; Tue, 26 Nov 2019 03:47:05 -0500 (EST) Date: Tue, 26 Nov 2019 17:47:02 +0900 From: Michael Paquier To: Tom Lane Cc: Andrew Dunstan , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Close stdin where it's not needed in TestLib.pm procedures Message-ID: <20191126084702.GF5435@paquier.xyz> References: <20191126044302.GC5435@paquier.xyz> <29991.1574752430@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JcvBIhDvR6w3jUPA" Content-Disposition: inline In-Reply-To: <29991.1574752430@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --JcvBIhDvR6w3jUPA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 26, 2019 at 02:13:50AM -0500, Tom Lane wrote: > Perhaps the "where possible" caveat needs to include a test whether > IO::Pty is installed? It's evidently not there by default everywhere. >=20 > It's possible that we should just move the goalposts and say IO::Pty > is required for TAP testing. I can foresee that we'll have to do > that if we ever want automated tests of psql's tab completion, > for example. Hmm. I am not sure that we are at that point yet (in which case we'd need to check after it in configure). Any other modules we require to be installed are directly imported to our code, but here we visibly have a dependency forced by the loaded code. My point is that it does not impact platforms that do not need it, so it seems like a waste to require for everybody something which is actually necessary only for a portion of users running the TAP tests. -- Michael --JcvBIhDvR6w3jUPA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3c5oYACgkQnvQgOdby QH3rAxAAkJUIrrrodcryWVkesrFJe4yI+gboYGZKCpXY7YiWEOqevt0EMzDf3lhL MM3qTihj/i2ppQSCsOsNOxBg6ZCunAnt+yd2zYMH7y0DGxLKymO1javaTEGsRCRN YOPajM4SSqVDjsp5v7qHGyeIOceNbZSiKP/s48Um4zlqB/N+jkRsPsvfy/SGJDRi crPwgX7MEixcohLYjdq0LOM/M0k2MNBMeW+43nNXsSj4vADKOfRIZndttgRdCH7H Ou1k+2n8SZgIT4h2tZ0Se45b+mqeu8PU/0tF8X8DVjQeRt5xcXagxI41NCDhPsjz 426L24BtxkkMpR22vLznw3JUNYYYow9x7ZXu3XpKLKQVP/vXX+M/qmQxypcOY5TY WNll8+58Ql2OqKvKmhI0EEESDPe5ENsys7bAVKpYtxfRRHeK/0AHHAc58NYnEwcw lMsayBUC8itpPablrQ35CdnP1aMa42OdZ6h5jVF/CJL8mWB70ptoq1b6UFU1I1ZY MSJ0+Pkz2xcz1L+sh6M+5JDMR5MnsMNZQ8bUmLghz/M8zQnGU7hMVmyxcI9bp5Db htKi5MrJ8TkDhD0cc5i4XHI1ZaDg+Hv0DE8d2hO8SHM231dNxwh1Tf4rdP6xpydT gVXOv2WT8Iyhhkps3kDFNznzHK+KLTATbYuGfu9kc8A6OQdeVIE= =YHmf -----END PGP SIGNATURE----- --JcvBIhDvR6w3jUPA--