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.

Regression with pushing down timestamp functions to PostgreSQL for timestamp with precision higher than 3

See original GitHub issue
SELECT ts_col
FROM postgresql.public.tab 
WHERE ts_col >= now() - interval '1' day

In 341 filter on ts_col is pushed down to Postgresql and index on ts_col is used In 342+ full table scan

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
guyco33commented, Oct 13, 2020

Already verified. It still exists (Actually, I first found it there 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

9.9. Date/Time Functions and Operators - PostgreSQL
(Values of type date and time are cast automatically, to timestamp or interval respectively.) field selects to which precision to truncate the input...
Read more >
PostgreSQL round timestamp seconds down for a postgres ...
To round down to the second, use date_trunc('seconds', :timestamp). Example: select date_trunc('seconds', '2012-09-19 ...
Read more >
oracle_fdw: A Foreign Data Wrapper for Oracle ... - PGXN
It will return the versions of oracle_fdw, PostgreSQL server and Oracle client. ... Similarly, ORDER BY clauses will be pushed down to Oracle...
Read more >
Documentation: 9.5: 9.9. Date/Time Functions and Operators
Dates and timestamps (with or without time zone) are all comparable, ... specified precision; see also Section 9.9.2, date_trunc('hour', interval '2 days 3...
Read more >
rails timestamp - Eternal Elements
I have a table with 5 columns (not including timestamps and id) 3 of which are ... May 16, 2017 · gingerlime pushed...
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