Sub-second EXTRACT behaves differently from postgres #40683
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-investigation
Further steps needed to qualify. C-label will change.
E-easy
Easy issue to tackle, requires little or no CockroachDB experience
good first issue
On postgres v11.5 (but I'm pretty sure this has always behaved as such):
On cockroachdb v19.1.3:
The postgres documentation for datetime functions agrees with the postgres behavior: sub-second
EXTRACT
gives the full seconds as part of the extracted value. "Note that this includes full seconds."I have to say I prefer the cockroachdb behavior, but it should probably be aligned with the postgres behavior.
The text was updated successfully, but these errors were encountered: