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 1vLyqi-00FbdF-1H for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 07:13:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vLyqg-0009EB-2s for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 07:12:59 +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 1vLyqg-0009E3-1v for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 07:12:58 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vLyqe-000TZi-0J for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 07:12:57 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-b8f70154354so33313a12.2 for ; Wed, 19 Nov 2025 23:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763622776; x=1764227576; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GNQ7klbrYGHZwBo3IpXn2nf9giam0TMDS3rC5ItG1kY=; b=FCJ/Co9PFT/iB71M13j9OsITPpbrt+QSPhA6NczcwoOTWn2t3KmuyDt5KNoveQYdBr 36lTce7vsqmFrsVNvxET6hMb/a7TF/b+9eCuLUT7xrYTJomPyuD7NE9WqYfJeooji7Bj 7GNMdxX/1ESYqNh61jctsqhY792zPnCTdbH6OPRzvwTJJ3QQSlpiGSb8zZPO4/svDAHJ n/6gI+VvDDUYxgK3a2drSoOUWgVeeGsMjJpzK6sJEWgw03hDPrG0jX4VYBTv2fEqhhYR xb1E8JMebflmdC7CtMtNg1LF3rKJCI/oF+xjOT5RxIhBfY3qLrsWzEsp3OjXtPXMZQvr T0Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763622776; x=1764227576; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GNQ7klbrYGHZwBo3IpXn2nf9giam0TMDS3rC5ItG1kY=; b=dvYGwgobb2jv+BLr83yEOnIEkJ47wGQtIL6V4+b3hMHbCpDt1Gf09Skawl5tGrfJgC Gr8MWe7aAMuUqptV5iJID2AhjxcDWFBmm/OGm5Dc1ptI+KDDwwzQm163BLD2S4/ViiHD UMoqJWUIe1o07S7p/nsApNJ4MbYcwKBgGc0BwmMBvp0QlfiSqAkIAdXiNtDutbrbA2a2 NadxZNU7lTKdmMcKvJh2CHDqzYZUZoAI97Xvi/i+JzTn3TNKVDlTmOi1eV9BG8sK2VwZ R2f5pcC5AxovjKRQnuQ1xvKrz3NJdF8pisV0b0GKqATXZch6TT9U5ruF8YHXHnVcTMIL dy3w== X-Forwarded-Encrypted: i=1; AJvYcCWNE/pvwBvJ/11qjVo04NFxRq1yHgV34Y9g8eT1kmKznK8OKdddI9SM7zmDxqD2GlO8y/1SM0ND0hfkQpSC@lists.postgresql.org X-Gm-Message-State: AOJu0Yxk/J/8tC71z2EoBtt9v8tlQLa3n6N7a3ftdSUlA26FchoCftO9 ogbfsD/CiMO0sQ6JbSUQh46aw37z0WF9ktmhnG7hm+jkd7Cp+0iWrdKeFT3YWSXvmFLINiQvw6U m1ts5JVjo0GuTo75rCmWaE9YyMmFOfho= X-Gm-Gg: ASbGnctUbpUjHMz9xOkBj6bOIAiI7m9+n7Exd1J2QH62eDAYLppZWlu/yMt/NXniiRR ywbHJS9Cxp1a0QM0eTfIN1slL7nXQQlCmA7rc4ChmY6/XuzdNEAbrufX5BQbtFDJVrtKpOGFY71 4BEw1/78/dSV02JrbObOr3L4q/RK1PNaoGvH/nyHZewIMy0j/wM1GZ+yLp3dgGMOaeh4A+hDUB1 +sczSpyZY8WNFLHNN02Te+DTce7W+TmdE76QLE4Ki9MVi8C9maM6ZB6DnJ2Wcj2BbvlImdeY7YO UtWt3A5xYuVJhhZasi5aPOz1gijAFhXa6Tabx0okTtaHA5rtsTOi X-Google-Smtp-Source: AGHT+IEv/0hK0gXCSvczd07bpxSDALrjvZunYvmcx/DxtiHokYKSp23XgrBSDpdgvHhFXyzsc/7xHkIm4UVatztJsNQ= X-Received: by 2002:a05:7022:ea46:10b0:11b:65e:f33 with SMTP id a92af1059eb24-11c938041f7mr673565c88.1.1763622775658; Wed, 19 Nov 2025 23:12:55 -0800 (PST) MIME-Version: 1.0 References: <536409d2-c9df-4ef3-808d-1ffc3182868c@iki.fi> <94c83f24-43cb-4a8b-b09b-42bd85ed7d65@eisentraut.org> In-Reply-To: <94c83f24-43cb-4a8b-b09b-42bd85ed7d65@eisentraut.org> From: Thomas Munro Date: Thu, 20 Nov 2025 20:12:18 +1300 X-Gm-Features: AWmQ_blkB0Tsv08BHVtTtbHh8a2otUSuYV1pfAmbMLflAoywRhqffXx-wG7V8pc Message-ID: Subject: Re: Trying out To: Peter Eisentraut Cc: Heikki Linnakangas , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 20, 2025 at 12:23=E2=80=AFAM Peter Eisentraut wrote: > On 13.11.25 12:35, Thomas Munro wrote: > > It passes with VS 2022 on CI. I had to skip some assertions about > > macros promising lock-free implementation, that it doesn't define in C > > mode yet. They are definitely lock-free though[1], and the macros are > > defined for C++, and the same under the covers... Perhaps > > feature/conformance macros won't be defined until a few remaining > > pieces (things we don't care about) are accessible from C? (I see > > that Visual Studio 2026 has also just shipped a couple of days ago, > > not investigated.) > > Note also that we still have buildfarm members with gcc <4.9, which is > required for stdatomic.h/_Atomic there. Those are EOL'd RHEL/Centos 7 and SUSE 12 systems. A decision to require GCC 4.9+ might not be fatal to them though, as those distros had optional newer tool chain packages too. I'm not sure what problems could follow from that, probably not much as far as C goes? C++ ABI questions are always harder but such old systems couldn't possibly use LLVM as we chop old releases based on distro EOL dates, and LLVM adopts new language standards (being a compiler project after all). (It'll be interesting to see what happens when LLVM requires C++23, and then RHEL's new rolling LLVM upgrade policy meets its 10 year old stable compiler policy...) The elephant in the room is Visual Studio. We have drongo on 2019, hammerkop on 2022, and CI on 2019 but ready to flip to 2022 whenever we're ready. There is no testing for 2026, being only a few days old (I heard from Bilal that our CI passed when he tried it out FWIW). 2019 fell out of "mainstream" support 1.6 years ago[1], "extended" support lasts 3.4 more years, and 2017's "extended" support also lasts 1.4 more years, which didn't stop commit 8fd9bb1d from chopping it to gain some C11 support. When could we chop 2019 too, to gain more C11 support? What motivation do people have to use old compilers for new software? If my google-search-fu is serving me, upgrades are either free (community edition for individuals, also for organisations working on open source) or included in various paid subscriptions. Is there a technical reason to be more conservative, for example, in terms of library versions on the target system, something to do with UCRT or _WIN32_WINNT versions that the EDB installer needs to target before you can use this stuff? I can't find anything saying so. Perhaps it'd be better to wait until /experimental:c11atomics isn't needed though. My impression so far is that that's about conformance with details we don't care about, not the maturity of the codegen which is used far and wide in C++, it's just that C conformance is a distant second priority (1=C2=BD decades later), but... (Not that this project is finished anyway, more study and validation required.) [1] https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2019