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 1r3qch-0067P1-Er for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Nov 2023 04:38:31 +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 1r3qcf-00Bbrz-Rw for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Nov 2023 04:38:29 +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 1r3qcf-00Bbrr-9Z for pgsql-hackers@lists.postgresql.org; Fri, 17 Nov 2023 04:38:29 +0000 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r3qcc-005xiG-Gk for pgsql-hackers@lists.postgresql.org; Fri, 17 Nov 2023 04:38:27 +0000 Received: by mail-io1-xd31.google.com with SMTP id ca18e2360f4ac-7b06afbd3cdso61369339f.2 for ; Thu, 16 Nov 2023 20:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700195906; x=1700800706; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gVxAtsmucl39aq7j6mNNCV9gKzbmRqznXVUjUuLaCPc=; b=KGplfb+liNN3dkXIP1FrlPjWEyGdDGznLebUF1qmwqDkaY1uiOLdOLXdZ6D6V8WfYA Mz5W2iCPILyrKG/pv9ImvPO/rDnNa3S3ETNUOBpYyXiVacFu8tNLgzUUU2k1c66o8FM3 o6LEszZUjgTk4dnb3Zg/mjSBy1gAM/y3tJKTmf+a2ewe4uKOWlrgdFM30pDfczDHORGT UZO831MELeKM9R+igupSm2tXR7WohOWPQClxdSIOm7Jh0ZwawFzUlfG2FFkFCVwlO8rG QXnLVmtNMrwek+YeKBt/oMgSDHdzWHKMMG/xOnHUu3A0rsQApxgO/Lr+Bm0eGgmTVRgL OciQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700195906; x=1700800706; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gVxAtsmucl39aq7j6mNNCV9gKzbmRqznXVUjUuLaCPc=; b=QxF0Y8AcDaz0FmwdNkWouadEQjp3AChMwfD6PTIzq34+RExdCgPVFvlvKuKPGALy9j ZIKb9xIotgK8sACVjnNYhi3X8cFABXvRMrIevvr6Z3TBLsJrBK5koZfxf7SEgQc+BNj/ 72EzsJh7E8nTAquhUxPC5iwqQyTC7dvp4WRVyHk9aBenBZL2gD4UCpq6TmaLMhaaHJCC 2/IQDVUq4EoGcFs5P/h/7q7/r6Byygl8obfnO1Y5WA4ZxTUChzMqkhaXnQELZ9T6Lb7s 7LKAV2JvON+8nVOG+Ilck16gbHuCEONg2yQ7F2+RXSTxpxixx+WhsZNENXCgZBrJqckB aq8g== X-Gm-Message-State: AOJu0YwOndi7NHUdwiV7uatrNJ7Yb/PHVYOZFxlCaBax6j0JZyvY3eUk d7Rsw9KfpK/ZvlvD33wMAoc= X-Google-Smtp-Source: AGHT+IGM7qAupcOjSJ6qNcsix9+Yhqt8EcmDiSi+3hcXKbR/ZKhLq9uOX2+4kWP2oo030mZZvzUYVw== X-Received: by 2002:a5e:aa0f:0:b0:7a9:b1ad:dddd with SMTP id s15-20020a5eaa0f000000b007a9b1adddddmr21080392ioe.12.1700195905776; Thu, 16 Nov 2023 20:38:25 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ck23-20020a0566383f1700b00459c279647bsm255671jab.127.2023.11.16.20.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:38:25 -0800 (PST) Date: Thu, 16 Nov 2023 22:38:22 -0600 From: Nathan Bossart To: Tom Lane Cc: Jubilee Young , pgsql-hackers@lists.postgresql.org, John Naylor Subject: Re: Hide exposed impl detail of wchar.c Message-ID: <20231117043822.GA2886723@nathanxps13> References: <20231116225402.GA2882846@nathanxps13> <450044.1700175990@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <450044.1700175990@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 16, 2023 at 06:06:30PM -0500, Tom Lane wrote: > I'm generally sympathetic to the idea that simd.h was a rather large > dependency to add to something as widely used as pg_wchar.h. So I'd > favor getting it out of there just on compilation-time grounds, > independently of whether it's causing active problems. That argument > wouldn't justify a back-patch, but "it's causing problems" might. Given the lack of evidence of anyone else using is_valid_ascii(), I'm leaning towards back-patching being the better option in this case. I don't know if it'll be feasible to keep simd.h out of all headers that third-party code might want to use forever, but that's not an argument against doing this right now for pgrx. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com