Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o94fp-0008BD-Qu for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Jul 2022 13:02:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o94fo-0005xr-Gt for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Jul 2022 13:02:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o94fo-0005fq-6q for pgsql-hackers@lists.postgresql.org; Wed, 06 Jul 2022 13:02:32 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o94fj-0001TM-1S for pgsql-hackers@postgresql.org; Wed, 06 Jul 2022 13:02:30 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DAB193200916; Wed, 6 Jul 2022 09:02:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 06 Jul 2022 09:02:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1657112539; x= 1657198939; bh=R4pnJTzXqnCkIA2Icpf8S5GYcw46Efd4X9a4i4avlG0=; b=K DhpPxTDITJj3OMdDvESK7KRwUYYLPe4B8RrGl16dc2IsPMnYFOhdIsSvKD44v+Yu dXsKiD+Fuz+lCUOJWAA0HJXphvwDFb9YjJ5/dIY45ApIe/v/vXkqiEbeJma/RGY7 W9znrdq8NOk1M7s86aSZh/JfUWTDJ7qsNgDeqVgGcbyvq4pvPRoRwgoKfiXcunfG LvxBSrmRgSJSxKeuujUKOZiOlahqJwo4BWN3KoDpsAMDOxGoIVCsoXPyy75jtuW0 Q7u4CdgBHwPnTVSrDgJ3bjgUVSWFX2aKR7kKEh5xcdYfOlpa6xM5PHt6bri7k44x ohDmVvg3or3GxT0b1JWJw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeifedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Jul 2022 09:02:16 -0400 (EDT) Message-ID: <7890936c-392b-91be-edac-b6d5a500e4b9@enterprisedb.com> Date: Wed, 6 Jul 2022 15:02:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: AIX support - alignment issues Content-Language: en-US To: Thomas Munro , Tom Lane Cc: Peter Geoghegan , Andres Freund , Noah Misch , Robert Haas , PostgreSQL Hackers References: <20220702183354.a6uhja35wta7agew@alap3.anarazel.de> <968410.1656789743@sss.pgh.pa.us> <977853.1656794075@sss.pgh.pa.us> <1415825.1656893299@sss.pgh.pa.us> <1827177.1656996797@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 06.07.22 04:21, Thomas Munro wrote: > /* > * Do not try to collapse these into one "w+" mode file. Doesn't work on > - * some platforms (eg, HPUX 10.20). > + * some platforms. > */ > termin = fopen("/dev/tty", "r"); > termout = fopen("/dev/tty", "w"); I don't know how /dev/tty behaves in detail under stdio. I think removing this part of the comment might leave the impression that attempting to use "w+" will never work, whereas the existing comment appears to indicate that it was only very old platforms that had the issue. If we don't have an immediate answer to that, I'd leave the comment as is.