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 1poiZJ-00006H-04 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Apr 2023 10:28:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1poiZH-0007jH-8Y for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Apr 2023 10:28:11 +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 1poiZF-0007hr-EJ for pgsql-hackers@lists.postgresql.org; Tue, 18 Apr 2023 10:28:10 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1poiZ6-003cGj-Ro for pgsql-hackers@postgresql.org; Tue, 18 Apr 2023 10:28:08 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 4510F320090B; Tue, 18 Apr 2023 06:27:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 18 Apr 2023 06:27:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding:content-type: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= 1681813676; x=1681900076; bh=jr5UPL+iDw7LfJwASFbR36Laa0HD9U0r1gM DPmPMSPQ=; b=lJEIM6HlhgU7x8pjx3IXZA8ZZNV25uyCs216JMa5r3zo+UvzX20 tqLuWCU8j60RrACS0gDBsmcSX02JhG8hthQQVKI3qjkXGlCHRIKn5DQw5xEaRZjP yubHCwcm5sWGE+jPHm9EQDJu+VDuhY8TEu2w2zAnM2M6H7nn664XhBDv3gF76TkK cKikWirpuN18bG97vY1hcimu+9fZUwdtjcNPw+8JpU1AgiXusPvmRfHIffLbE1xT qYmzih90LFAQ5i8eMDCT9W67M8l0XIFldxe+m03QfNqeemxzp5gadMnpkJUE1TdU 2AUeO7xp2stqfUBpBAs/sXdA+7Z+BiLmz0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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= 1681813676; x=1681900076; bh=jr5UPL+iDw7LfJwASFbR36Laa0HD9U0r1gM DPmPMSPQ=; b=BHdS7USbHo7y/NWxbaau2+pg6Tu3+l0CwgEmdpcdb4Grj+GhIf1 ceWuOo0gzFeMBiqlprPbbYXxLyXCS6zivcOVHpm4cs/5qtOWi1azumCeiQNZuxAY UDSHtZ71nqorNsEpz/LgdvBwyfsVcsKW4rwIbnn0cmnUAsTzdUEYl6a51a4U7bZc GKPxWNuuXuZ1eufuXISaO4akVAh9Q4cm4GMqASU3Y93xzuX4K2Nh1z3wwc4OFaD/ OqP1mmao7S3+96vhEH+t8oJTveHJlhPXipSiin6lnlSWCra2Cd80Q1DKzPKxyOyf hx+SyfJKXqcXcE0AWTcVDVoA3EbFQRqh8Vw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelkedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpeffrghg fhhinhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoehilhhmrghrihesihhlmhgrrh hirdhorhhgqeenucggtffrrghtthgvrhhnpeehheegteejgeeggefhieffueevtdekieet teejjedtgefgffeujeejgeetfeffudenucffohhmrghinheptghirhhruhhsqdgtihdrtg homhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehi lhhmrghrihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Apr 2023 06:27:55 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Jim Jones Cc: pgsql-hackers@postgresql.org Subject: Re: Adding argument names to aggregate functions References: <877cw3jl8y.fsf@wibble.ilmari.org> <87wn2hq959.fsf@wibble.ilmari.org> <16f35a27-ad65-0420-44ee-b41c3fd08aee@uni-muenster.de> <87mt3ardbc.fsf@wibble.ilmari.org> <54d1c9a9-6b16-2fb2-199e-ac903c88c4d2@uni-muenster.de> Date: Tue, 18 Apr 2023 11:27:54 +0100 In-Reply-To: (Jim Jones's message of "Tue, 18 Apr 2023 11:16:46 +0200") Message-ID: <87sfcxv61h.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jim Jones writes: > On 18.04.23 10:58, I wrote: >> On 14.04.23 12:03, Dagfinn Ilmari Mannsåker wrote: >>> Thanks for the heads-up, here's a rebased patch. I've also formatted >>> the lines to match what reformat_dat_file.pl wants.  It also wanted to >>> reformat a bunch of other entries, but I left those alone. >>> >>> - ilmari >> >> The patch applies cleanly now and \df shows the argument names: >> >> postgres=# \df string_agg >>                                 List of functions >>    Schema   |    Name    | Result data type |     Argument data >> types      | Type >> ------------+------------+------------------+------------------------------+------ >>  pg_catalog | string_agg | bytea            | value bytea, delimiter bytea | agg >>  pg_catalog | string_agg | text             | value text, delimiter text   | agg >> (2 rows) >> >> postgres=# \df json_object_agg >>                                 List of functions >>    Schema   |      Name       | Result data type |  Argument data >> types   | Type >> ------------+-----------------+------------------+------------------------+------ >>  pg_catalog | json_object_agg | json             | key "any", value "any" | agg >> (1 row) >> >> >> I'm wondering if there are some sort of guidelines that dictate when >> to name an argument or not. It would be nice to have one for future >> reference. I seemed to recall a patch to add arugment names to a bunch of functions in the past, thinking that might have some guidance, but can't for the life of me find it now. >> I will mark the CF entry as "Read for Committer" and let the >> committers decide if it's best to first create a guideline for that or >> not. >> >> Best, Jim >> > I just saw that the patch is failing[1] on "macOS - Ventura - > Meson". Not sure if it is related to this patch though .. > > [1] > https://api.cirrus-ci.com/v1/artifact/task/5881376021413888/meson_log/build/meson-logs/meson-log.txt Link to the actual job: https://cirrus-ci.com/task/5881376021413888 The failure was: [09:54:38.727] 216/262 postgresql:recovery / recovery/031_recovery_conflict ERROR 198.73s exit status 60 Looking at its log: https://api.cirrus-ci.com/v1/artifact/task/5881376021413888/testrun/build/testrun/recovery/031_recovery_conflict/log/regress_log_031_recovery_conflict we see: timed out waiting for match: (?^:User was holding a relation lock for too long) at /Users/admin/pgsql/src/test/recovery/t/031_recovery_conflict.pl line 311. That looks indeed completely unrelated to this patch. - ilmari