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 488d3554-0564-443e-b08a-66e0da66f736@eisentraut.org
Whole thread
In response to Re: implement CAST(expr AS type FORMAT 'template')  (Haibo Yan <tristan.yim@gmail.com>)
Responses Re: implement CAST(expr AS type FORMAT 'template')
List pgsql-hackers
On 06.07.26 19:14, Haibo Yan wrote:
> The cases where I think a generic mechanism could be useful are
> broader than that.  For example:
> 
>      text <-> date/time        using datetime templates
>      text <-> numeric          using number templates
>      text <-> bytea            using hex/base64/escape
>      text/bytea <-> extension types
>                            using external representations such as
>                            WKT/WKB/GeoJSON for geometry types
One problem I see is that this would dictate that there is only one 
possible format language for each of these conversions.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: implement CAST(expr AS type FORMAT 'template')
Next
From: Jim Jones
Date:
Subject: Re: Truncate logs by max_log_size