Add PostgreSQL compatible data type formatting functions
See original GitHub issueUse case:
Have better compatibility with PostgreSQL tools
Feature description:
PostgreSQL supports various Data Type Formatting Functions
CrateDB has date_format
and format
as alternative, but for improved tooling support it would be good to have the PostgreSQL variants:
-
to_char(timestamp, text)
-
to_char(interval, text)
-
to_char(int, text)
-
to_char(double precision, text)
-
to_char(numeric, text)
-
to_date(text, text)
-
to_number(text, text)
-
to_timestamp(text, text)
(Please do 1 commit per function)
These are also used by PostgreSQL JDBC for the escaped functions dayname(arg1)
and monthname(arg1)
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
15: 9.8. Data Type Formatting Functions - PostgreSQL
The PostgreSQL formatting functions provide a powerful set of tools for converting various data types (date/time, integer, floating point, ...
Read more >PostgreSQL Date Types - Format, Functions, and More - Prisma
The date format for the date data type in PostgreSQL is yyyy-mm-dd . This is the format used for both storing data and...
Read more >Exploring Postgres date formats and their different functions
Postgres uses the DATE data type for storing different dates in YYYY-MM-DD format. It uses 4 bytes for storing a date value in...
Read more >Data type formatting functions v14 - EDB
The EDB Postgres Advanced Server formatting functions provide a powerful set of tools for converting various data types (date/time, integer, floating point, ...
Read more >Data Type Formatting Functions - PostgreSQL - w3resource
Data Type Formatting Functions ; to_char(interval, text), text, convert interval to string ; to_char(int, text), text, convert integer to string ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@seut looks good 😃
@proddata great, thx! 🎉