Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vT4wy-00CQtk-18 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Dec 2025 21:08:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vT4wx-0077zT-05 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Dec 2025 21:08:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vT4ww-0077zK-01 for pgsql-hackers@lists.postgresql.org; Tue, 09 Dec 2025 21:08:47 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vT4wt-003zoJ-36 for pgsql-hackers@lists.postgresql.org; Tue, 09 Dec 2025 21:08:45 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 843BF140008D; Tue, 9 Dec 2025 16:08:42 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 09 Dec 2025 16:08:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765314522; x=1765400922; bh=TJnYPRvBPrrX4PjCG+01ib7TcSjTkl58t47PpbJbPWg=; b= kHrbeIMW5ah7xeR5mfisrNnACEPg02snh+24WnnKLox6Ez2X2yI7z7C9wR/svB9p npXv/mK/Fh87eR0V/ULnVzl8ijwDZxmy2RkgeH0KVQFTXgHWGM5NaCZEPm1kmnGv ke0g1A7m764YcKr71VfkYeIFZ/Hrd3UumoFLG82LPFndmFVBW4xLSH9i4PYr5/qL 75TQT9jj0rhSKcaD7bL4X7Wjk665dcsb8MGKufTIRaLg0AiQXEGWXafVhlexGNIa C+A+iEgtS0bwk8ZWEZUmO/xwLkyCCXXGmiFt5POvxmZhuWBRCI2kAcawxg+1DKw0 P6MK5psO377IN4kFszVvIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1765314522; x=1765400922; bh=T JnYPRvBPrrX4PjCG+01ib7TcSjTkl58t47PpbJbPWg=; b=N7TUJFX9+R8lSSfPb NgAY3kmPBuAv4bB4MKvhkre4KQQ9Aszb0e9fcJXGKB40J5SHY+18UcXwxSOHVezH 6iik32FNPp5stu75/8B9JXEs/P2rp1bQMqWEbPxhQvHWzxn7WGm68yg0HqqcH+Zt eEGrIYyBq6eUcb7fHblc2GcbjdX9vIB+rUR9pGrLGIIPjfnZWOVRwOGJmv8B3PUf 7oKLqmW3x5coONYl8Ez/EFjVEAT387L9b/3tK9Jo2dtxxiZNQ1CxrQY+sO19lgo1 1qHC7vPs0fVOouldIMG6AxmvSFMl2+cy8px1STPVk+5G0OQuwHp4wmkEdCiGc/xN obeCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpefrvghtvghrucfg ihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgheqnecugg ftrfgrthhtvghrnhepudfgjefffeelfedvgedvjedvieehvefghfejgfduhfevvdejveef heetlefgveefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtthhopeeg pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsrhhirhgrmhdrrhhksehinhdrih gsmhdrtghomhdprhgtphhtthhopehpohhsthhgrhgvshdqihgsmhdqrghigiesfiifphgu lhdrvhhnvghtrdhisghmrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsh eslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohephhhlihhnnhgr khgrsehikhhirdhfih X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Dec 2025 16:08:40 -0500 (EST) Message-ID: Date: Tue, 9 Dec 2025 22:08:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: AIX support To: Srirama Kucherlapati , AIX PG user , "pgsql-hackers@lists.postgresql.org" , Heikki Linnakangas References: <794e9968-c48f-4ec3-a5f9-a7e8faca8979@eisentraut.org> <176279401378.2081919.12877701948713975661.pgcf@coridan.postgresql.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09.12.25 17:50, Srirama Kucherlapati wrote: > Hi Team, (Peter/Heikki) > > I have implemented the requested modifications in the latest patch. > Below are the key technical updates: > > • Meson Build Configuration: Adjusted below meson.build scripts to > incorporate the suggested changes, ensuring proper dependency resolution > and improved build consistency. > >     Removed the AIX changes in the below from the previous patch. > >     src/backend/jit/llvm/meson.build > src/backend/replication/libpqwalreceiver/meson.build > src/backend/replication/pgoutput/meson.build > src/backend/snowball/meson.build > src/backend/utils/mb/conversion_procs/meson.build > >     Added the static_library() changes. > >     > Regarding the archiving of shared and static libraries, the > latest version of >> Meson raises a conflict as both targets have the same name. This issue >> arises because, on AIX, both shared and static libraries are named as same >> archive, which leads to naming collisions during the build process. We >> would still need the below changes. > >      src/interfaces/ecpg/compatlib/meson.build > src/interfaces/ecpg/ecpglib/meson.build > src/interfaces/ecpg/pgtypeslib/meson.build > src/interfaces/libpq/meson.build > > • CFLAGS Optimization Removal: Removed high-level optimization flags > from CFLAGS to prevent unpredictable behaviour and maintain stability > during compilation. > > I would greatly appreciate it if you could review the patch and share > your feedback or any additional recommendations. > > Apologies for the delayed response; I was occupied with other tasks. > > Your insights are greatly appreciated and will help enhance the patch. > > > Warm regards, > -Sriram. > > 1) In meson.build: + cppflags += '-D_GNU_SOURCE' I don't think this symbol is applicable to AIX. 2) In meson.build: + # Native memset() is faster, tested on: + memset_loop_limit = 0 The comment sentence appears to be truncated. 3) In meson.build: +#if cc.alignment('int64_t', args: test_c_args, prefix: '#include ') > alignof_double +# error('alignment of int64_t is greater than the alignment of double') +#endif This commented out code cannot be left like this. Either remove it or adjust it as required. 4) In meson.build: /* This must match the corresponding code in c.h: */ - #if defined(__GNUC__) + #if defined(__GNUC__) || defined(__IBMC__) You code does not observe what the comment says. 5) The changes in src/include/port/aix.h are nonsense. This was previously pointed out and you said you would address this. 6) I had previously pointed out that the changes in src/include/storage/s_lock.h are not acceptable like that and you had said that you would address that.