Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e22Vp-0000Tl-Ak for pgsql-committers@arkaria.postgresql.org; Tue, 10 Oct 2017 21:56:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e22Vo-00072S-Ea for pgsql-committers@arkaria.postgresql.org; Tue, 10 Oct 2017 21:56:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e22Vn-000728-Mm for pgsql-committers@postgresql.org; Tue, 10 Oct 2017 21:56:27 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e22Vi-0006W0-BM for pgsql-committers@postgresql.org; Tue, 10 Oct 2017 21:56:27 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7D9B1209D3; Tue, 10 Oct 2017 17:56:20 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 10 Oct 2017 17:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=oCUC+W4ZxkKOiQHrvR 8mjtLJoFe4JcQbixrRrXIuZBE=; b=rQCQr8BF6q7Uj328w9+0aG/CUuJYgfTRnQ FArrcVVQwCf/6J83C/Ww85B6sJE6Gb2bytSlJuPADmHlMkqyizOETzHahXmO09Oz iNMcAwrac8uaBARhxVSpyFrFt7jfAtyzCv2yydHD8SbihPWbD6P9TnaUtFQtfUKr i3cpbAQvath/R9ul5vWkIwV6AhX6eQ26dHSBjnDjjybuhnzQl0bsChzhAnIRFdLH zHPXClUVTxWH85Af1tX2gpk4gEPVNod/2pm+NbBPqbdxC0NtZHnz9rTPa8407rV9 Q6is+6UkW3+G3qs6BRuyiJRjKUPXCJobM8U91EktSag9BEUXOvUw== X-ME-Sender: X-Sasl-enc: qTrL0uVpCsvyOlExb/PBXo9SY2oq7hR6uzYyISI3v8nu 1507672580 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 21A7C7E3DB; Tue, 10 Oct 2017 17:56:20 -0400 (EDT) Date: Tue, 10 Oct 2017 14:56:18 -0700 From: Andres Freund To: Tom Lane Cc: Andrew Dunstan , pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_strnlen() a portable implementation of strlen. Message-ID: <20171010215618.qbracvhslzvuxilv@alap3.anarazel.de> References: <20171009231509.nlptgdrtg2au6frn@alap3.anarazel.de> <44745881-6095-e3ba-e8eb-23b1d92bffab@dunslane.net> <20171010194818.p2hhod32ezmvhryb@alap3.anarazel.de> <21912.1507668699@sss.pgh.pa.us> <20171010205315.g7l6tf3j5jzplqax@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="mkdpzxts4keiyght" Content-Disposition: inline In-Reply-To: <20171010205315.g7l6tf3j5jzplqax@alap3.anarazel.de> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --mkdpzxts4keiyght Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2017-10-10 13:53:15 -0700, Andres Freund wrote: > On 2017-10-10 16:51:39 -0400, Tom Lane wrote: > > Andres Freund writes: > > > As far as I can tell it's still somehow using a configure from before > > > the last commits: > > > > No, it's pilot error. The AC_CHECK_FUNCS call you added strnlen to > > is only executed if > > AS_IF([test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"], > > Dear god, I'm daft. Dear god, m4 is a horrible lanuagage. Here's a fix. Not quite sure whether we really need the HAVE_DECL_STRNLEN test, added it for symmetry. Afaict windows "always" had strnlen, so no need to meddle with the windows build. Will eat lunch and push, even if there's some futher adjustments, I'd like to get Andrew's animals green again. Greetings, Andres Freund --mkdpzxts4keiyght Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Rewrite-strnlen-replacement-implementation-from-8a24.patch"