Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJqbb-0002Lx-6p for pgsql-committers@arkaria.postgresql.org; Mon, 23 Jan 2023 06:46:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pJqbZ-0004Hw-Ta for pgsql-committers@arkaria.postgresql.org; Mon, 23 Jan 2023 06:46:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJqbY-0004Hn-D4 for pgsql-committers@lists.postgresql.org; Mon, 23 Jan 2023 06:46:57 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJqbT-0005kc-N0 for pgsql-committers@lists.postgresql.org; Mon, 23 Jan 2023 06:46:55 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 15FA05C00AE; Mon, 23 Jan 2023 01:46:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 23 Jan 2023 01:46:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1674456409; x=1674542809; bh=ci2LU2aHLu ygBbNGbC+lkjkIt6A6RQWSb/FIaoo3Jaw=; b=NCjPAXBxDsNx1TMpw/P+aiXx+s A7VEpHIlH6y0mrCo2DbbsfRhWtcrWZ1UL/3noJgRfyQOjVjK+sDs/31EdbiHHL+l bGenYpKrrABs3p2/a/ZYnSIcXhsdi4rYX16hV45vyXRhF7H0qOaW0C8T8QcJN3T3 LAxLhx2NajlpxTqooZ40FY3lX8kO1rox9btTLky1MjVg4WWGnqYdahwo4ymv6cng LhkV1I5JzR6VHg+rIJdWIMlp/gWK0JDDCu1+9P4DhFpWAzCr93rrmaCT9L9eKgj+ qenVAIot35Eq3sJMACb6KNjbQkbrNF6jv1jdINAKksTxrlovB6z3kG2D4g0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674456409; x=1674542809; bh=ci2LU2aHLuygBbNGbC+lkjkIt6A6 RQWSb/FIaoo3Jaw=; b=jTh1rFUAG4yvQ/3HkbJLOXATYiMt3yA2tzdiBuxrlb8I VTHUk5ptPTKkBne86Yl8tYAOgMwLO5nik7ES5XOa7fbb/lGddFj7FQaF71GOuIg8 ERBH0+d3dN+Fh+1vv0NPoBB5L8WNih5o1LoCnHoQ2iI4OOg5UH64nQwL5+w/6h9Q MBTZyZa4nF+rhisK7dMeebUFv6popy+2N/Nuzo7Ga8zpkKaHTFjDboy6s/OYh+Jq bFc0VecRGkc1SnAjfKwzu0Gk0hG/oUR+KbkCpnFvgPhiMJcC7X4l2HYovelKmjfK usJ10eMu3gIlqq8o0LtYw15+1iUCTTMB2F2xH3hGpA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddujedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculddvfedmnecujfgurhepfffhvfevuffkfhggtggujgesthdtredt tddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrg hrrgiivghlrdguvgeqnecuggftrfgrthhtvghrnhepveevieffveejtefggeffgfekueei ueekvdethfehieduheejleetjeekieettdffnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Jan 2023 01:46:48 -0500 (EST) Date: Sun, 22 Jan 2023 22:46:47 -0800 From: Andres Freund To: Tom Lane Cc: Michael Paquier , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: instr_time: Represent time as an int64 on all platforms Message-ID: <20230123064647.tzxnmql2xkegc7sw@awork3.anarazel.de> References: <1540079.1674454854@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1540079.1674454854@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-01-23 01:20:54 -0500, Tom Lane wrote: > Michael Paquier writes: > > On Sat, Jan 21, 2023 at 05:25:19AM +0000, Andres Freund wrote: > >> instr_time: Represent time as an int64 on all platforms > > > hoverfly is unhappy since this went in: > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hoverfly&dt=2023-01-23%2005%3A01%3A44 > > Yeah, there was some discussion about that already: > > https://www.postgresql.org/message-id/20230121190303.7xjiwdg3gvb62lu3@awork3.anarazel.de I was thinking of starting a starting a separate thread about it - it's mostly a plpython issue, the fact that my commit caused the compilation failure is somewhat random. Although I now wonder if we could solve the issue of the compilation failure in a localized way, separately from fixing plpython. There's really no need for execnodes to include instrumentation.h (and thus instr_time). With a forward define of struct Instrumentation and WorkerInstrumentation (and using it in the file), plpython builds just fine with an intentionally broken instr_time.h. > I'm inclined to think that we should fix the plpython code to be rigorous > about including everything else we need before including the Python > headers. That's ugly, but it's not our fault that Python thinks it can > redefine _POSIX_C_SOURCE. Another approach could be to figure out that we ought to define _POSIX_C_SOURCE when building files that involve plpython (e.g. by querying the define during configure). But I'm a bit worried about that breaking assumptions we make - we do define _GNU_SOURCE on linux via CPPFLAGS, and IIRC there are some weird conflicts between the two. Greetings, Andres Freund