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.94.2) (envelope-from ) id 1uMMaF-009UwL-79 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jun 2025 08:01:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uMMaD-000WCG-2P for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jun 2025 08:01:17 +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.94.2) (envelope-from ) id 1uMMaC-000WC8-PB for pgsql-hackers@lists.postgresql.org; Tue, 03 Jun 2025 08:01:16 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uMMa6-000Ah1-1v for pgsql-hackers@postgresql.org; Tue, 03 Jun 2025 08:01:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1748937667; bh=mleZVsBJ6siyuqoIfeP7fWkiXp5wbxn7GBE1VxWWxJo=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=T8nZB5gAdp1wu/HVbWuIyB+HCyo8i/E4VDNP7LayQfczjHVs59z84ffNbUsrXKXpG faYezNs50n/qeOxty+h17+UO9qj8mjClK/V77ncot7+2QIbJqro2BSAd9GYruBEvNh LQm2MtOwuhsQzCxfbBfAJ+rUr19HnP7jukJmm2OJTiJhD7qIG6rx6n/NRQlauCRbrs 9N+UAHE07NffObFl2rXiLHjzzcgUvJZpcVP7mpo09xZd0JwhGA8eNGn1KewjCsf+bC 0hYbtSBZ2CfEJflW1wOl6/UyqmfwBFic4/ZEwOE1RNpHlhEXfo7KYZDCQRsUyb4RGr 4SLZPuMIDAeLQ== Received: from [192.168.3.174] (broadband-46-242-12-77.ip.moscow.rt.ru [46.242.12.77]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: y.sokolov@postgrespro.ru) by mail.postgrespro.ru (Postfix/465) with ESMTPSA id 69B2B6046B; Tue, 3 Jun 2025 11:01:07 +0300 (MSK) Message-ID: Date: Tue, 3 Jun 2025 11:01:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: C11 / VS 2019 To: Michael Paquier , Nathan Bossart Cc: Peter Eisentraut , pgsql-hackers References: <01a69441-af54-4822-891b-ca28e05b215a@eisentraut.org> Content-Language: en-US From: Yura Sokolov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-KSMG-AntiPhishing: NotDetected X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2025/06/03 05:19:00 #27534259 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 03.06.2025 07:51, Michael Paquier wrote: > On Mon, Jun 02, 2025 at 08:52:00AM -0500, Nathan Bossart wrote: >> On Mon, Jun 02, 2025 at 05:44:12AM +0200, Peter Eisentraut wrote: >>> Summary: >>> 1. require VS 2019 >>> 2. use C11 >>> >>> Thoughts? >> >> +1 > > +1 to move on for both of these. I got convinced about the benefits > of C11 and the simplifications we could get from it in the Postgres > code base during your presentation at pgconf.dev. > > Dropping VS 2015 and going up to VS 2019 brings other benefits, > __VA_ARGS__ coming in mind. I am wondering what's the state of > locales, actually. We've had some pain with VS 2015 as we lacked > locale_name in _locale_t, for example. That may be worth a second > look to see if some simplifications can happen in this area. I don't > think so at quick glance through the VS docs, unfortunately, but I may > be wrong, of course.. Will it mean we can implement atomics in term of C11 atomics? Aside for VS 2019, which has no support for. (But VS 2022 already has.) So instead of numerous variants we could just differ VS2019 vs plain C11. -- regards Yura Sokolov aka funny-falcon