Re: Casts from jsonb to other types should cope with json null - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Casts from jsonb to other types should cope with json null
Date
Msg-id 376008.1737733733@sss.pgh.pa.us
Whole thread Raw
In response to Re: Casts from jsonb to other types should cope with json null  (Maxim Orlov <orlovmg@gmail.com>)
Responses Re: Casts from jsonb to other types should cope with json null
List pgsql-hackers
Maxim Orlov <orlovmg@gmail.com> writes:
> I tend to agree with you here about the semantics of such casts. But
> consistency and "predictability" of
> behaviour for the casts are a bit more important in my view. At least,
> based on my experience. So, I'm
> for 0002 patch.

OK.  Nobody has spoken against the 0001 patch (replace errors with
return-a-null), so I think I'll go ahead and commit that one.
Then I'll return to this thread with a fleshed-out patch for 0002.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: Show WAL write and fsync stats in pg_stat_io
Next
From: Chapman Flack
Date:
Subject: Re: XMLDocument (SQL/XML X030)