Re: strangely worded message - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: strangely worded message
Date
Msg-id 202501072033.ovhn6hjqrpgp@alvherre.pgsql
Whole thread Raw
In response to Re: strangely worded message  (Amit Langote <amitlangote09@gmail.com>)
List pgsql-hackers
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"



pgsql-hackers by date:

Previous
From: Mats Kindahl
Date:
Subject: Re: Coccinelle for PostgreSQL development [2/N]: autoconf support [RESEND]
Next
From: Robert Treat
Date:
Subject: Re: PoC: history of recent vacuum/checkpoint runs (using new hooks)