question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add PostgreSQL compatible data type formatting functions

See original GitHub issue

Use 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:open
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
proddatacommented, Mar 3, 2021

@seut looks good 😃 image

0reactions
seutcommented, Mar 3, 2021

@proddata great, thx! 🎉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found