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 1tVGH3-006qXc-7F for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jan 2025 20:34:01 +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 1tVGH2-0087oI-8h for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jan 2025 20:33:59 +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 1tVGH1-0087np-Hn for pgsql-hackers@lists.postgresql.org; Tue, 07 Jan 2025 20:33:59 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tVGGz-000OFn-06 for pgsql-hackers@lists.postgresql.org; Tue, 07 Jan 2025 20:33:58 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 9E015114012A; Tue, 7 Jan 2025 15:33:55 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 07 Jan 2025 15:33:55 -0500 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736282035; x=1736368435; bh=j ouKzWJRloEa9WYRX96sczq74hXweXIGJh2DgQoeT24=; b=HoilMMuUXOdxyCpsI CgyqvESazi971kZZbnEb4+l1jr45BduGhv1Ms2zdfd8+mVElYeimjxfizXfe2nZ+ VtdiCrywFlL0nc0a1FUs4y6kIWLVxFkokOZl3tZ+4Fn/0RuWDY6Sg1cB/yRdqAP2 c4Tzha+KRd5KMipK51prvMv9xjRL1gNGOA0Z4RIYvf19UbiZOcTr0GGGiS8yl0LL cGyPgdzJC/RvzUPIYi6QACeEeBcUAYSU4/be+s0ZSlgLkAO/Sfq6QTowbhvmXrGq zUn5i//R/k8XPVXYybHJgaCbINnDDGRzNbdpkI31taZzKJrxCF0/ZweIrn/pXHWO CCH+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegvddgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheff hfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghmihhtlhgr nhhgohhtvgdtleesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkh gvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Jan 2025 15:33:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1736282031; bh=rQ6AcO/bo/ymi617dSBP4646Dgk/yHcbAPJzYwIOAxc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Yf8jRel30/4+hw5QWh0ckw3cEifMF5wKQEAMKgjHK/AsA8kmA0ubErp5oEWW8uPbB AwIH5sIwRhwNsNMhcBxPLm7b175Msm9MSyfWm1gZUAE6PeN0F0HwAV570KIDogWgDI ZK56nuzT738PUw/bJ0hieFZ2Xv0/kDFHISutjLvz0pT7ywbnhWD7/QRPKtPPUvbUnf c3Wt9DADVon5b0XLE/shmOYVmGqUTCeArpoLWlBLdVc5QwtVqXOYkoNVn55cV32uOU CaWQJbKO3ZoKGnMTQHL5EhGeVcq1CCVZqufyIFb7Iy8XMa53Dx7k4ZsZO+4jHbw5dm eL6jeBS+e6RXw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id D5B11307; Tue, 7 Jan 2025 21:33:51 +0100 (CET) Date: Tue, 7 Jan 2025 21:33:51 +0100 From: Alvaro Herrera To: Amit Langote Cc: Pg Hackers Subject: Re: strangely worded message Message-ID: <202501072033.ovhn6hjqrpgp@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Amit, On 2024-Dec-16, Amit Langote wrote: > > ERROR: cannot use type %s in RETURNING clause of %s > > DETAIL: Only types json and jsonb are allowed in the RETURNING clause. > I think I'd go with the one you chose. Actually I noticed that the one in JSON_SERIALIZE() already has a different hint, "Try returning a string type or bytea.", so I made the other ones mimic that (and made it a hint rather than detail). > Are you planning to push a fix yourself or would you like me to? I just pushed it to both master and 17. Thanks for looking! -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Si quieres ser creativo, aprende el arte de perder el tiempo"