Comments (5)
Is it because Postgres supports larger time ranges?
from pgsql.
It is because PostgreSQL supports more precision in timestamps. As Erlang preserves order between floats and integers, such timestamps can be compared with timestamps()
. For example, the following holds:
true = {{{2013,3,21},{18,35,0.241573}}} < {{{2013,3,21},{18,35,1}}},
true = {{{2013,3,21},{18,35,0}}} < {{{2013,3,21},{18,35,0.241573}}}.
There could be an option to truncate timestamps to integers.
from pgsql.
@pguyot That would probably help. It was a thorn in our side when we used epgsql too.
from pgsql.
It would be nice to have an option to always return a float as the second value as well. Having it be either an int() or a float() depending on the number of micro seconds can hide some bugs.
from pgsql.
The option is {datetime_float_seconds, round | always | as_available}
. as_available is the default, returning integer timestamps when the number of microseconds is 0.
from pgsql.
Related Issues (20)
- Timeout logic fails with errors within transactions HOT 5
- bpchar in rows HOT 2
- No license file?
- Does COPY work?
- simple_query fails on timestamp result with timezone offset HOT 2
- Single command to initialize, send and end a COPY? HOT 8
- Errors and inconsistencies handling of null values in arrays HOT 1
- Publish to Hex package manager HOT 7
- support jsonb is in your plan? HOT 3
- JSON and JSONB support HOT 2
- Error responses as maps HOT 6
- Proper way to monitor disconnections HOT 2
- function_clause set_succeeded_or_within_failed_transaction HOT 1
- Is it possible to run this from Makefile? HOT 1
- New hex release?
- cidr type not mapped properly on a fold/4 HOT 4
- "invalid byte sequence for encoding" for bytea[] column HOT 2
- Confusing sentence in readme HOT 2
- pgsql_connection:start_link/1 timeout option
- Return values from INSERT are not parsed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgsql.