New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgres_scan_pushdown doesn't pushdown predicate #162
Comments
Thanks for the report! This is actually a limitation in DuckDB itself - not in the Postgres scanner. |
@Mytherin Ah okay! So if I understand correctly I could also just not use |
Yes, if you use a constant timestamp the value should be pushed down. |
I've fixed this in upstream DuckDB in the mean-time as well, so |
Nice! Thanks @Mytherin!!! |
What happens?
I have a very large database that I want to be able to read time ranges of data from. In order to do this I was going to use the duckdb pushdown to avoid overfetching data (its actually impossible to fetch the whole table).
I ran the query below to test this. However, as this test query should take just milliseconds to run but was taking significantly longer I went and looked for long running queries against the database. The query running in the database is shown below as well. There was no where clause applied.
To Reproduce
The description above should somewhat suffice. This maybe hard to reproduce without a sufficiently large enough database to stall the query.
The long running query check against postgres is below though.
OS:
MacOS Sonoma and Ubuntu 22.04
PostgreSQL Version:
Postgres 15.4/Timescaledb 2.12
DuckDB Version:
duckdb-0.9.2-cp311-cp311-manylinux_2_17_x86_64
DuckDB Client:
Python
Full Name:
Taylor Beever
Affiliation:
QuickNode
Have you tried this on the latest
main
branch?Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: