| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | jian he <jian(dot)universality(at)gmail(dot)com> |
| Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, Vik Fearing <vik(at)postgresfriends(dot)org>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: implement CAST(expr AS type FORMAT 'template') |
| Date: | 2026-07-09 07:18:16 |
| Message-ID: | 33b9c141-dc4d-44a7-a1b8-9bd0a58cf954@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-07-09 07:20:29 | Re: implement CAST(expr AS type FORMAT 'template') |
| Previous Message | Amit Kapila | 2026-07-09 07:17:02 | Re: Bug in ALTER SUBSCRIPTION ... SERVER / ... CONNECTION with broken old server |