Re: implement CAST(expr AS type FORMAT 'template') - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: implement CAST(expr AS type FORMAT 'template')
Date
Msg-id 33b9c141-dc4d-44a7-a1b8-9bd0a58cf954@eisentraut.org
Whole thread
In response to Re: implement CAST(expr AS type FORMAT 'template')  (jian he <jian.universality@gmail.com>)
Responses Re: implement CAST(expr AS type FORMAT 'template')
List pgsql-hackers
On 04.07.26 03:09, jian he wrote:
>> I don't really understand the purpose of this feature to begin with.
>> You can already call the formatting functions directly.  Does this cast
>> syntax offer anything on top of that?
>>
> 
> https://www.postgresql.org/message-id/762ae707-7fdc-43d8-a77a-3a10d12ce21d%40postgresfriends.org
> 
> After this implemented, we can begin fully supporting:
> 
> <cast specification> ::=
>      CAST <left paren>
>          <cast operand> AS <cast target>
>          [ FORMAT <cast template> ]
>          [ <cast error behavior> ON CONVERSION ERROR ]
>          <right paren>

The ON CONVERSION ERROR feature is independent of the FORMAT feature, 
isn't it?




pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Bug in ALTER SUBSCRIPTION ... SERVER / ... CONNECTION with broken old server
Next
From: Peter Eisentraut
Date:
Subject: Re: implement CAST(expr AS type FORMAT 'template')