Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

postgres scanner not work on partition table

Open
#220 2 comments 6 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
cpp, postgresql
Domain
databases

Research direction

Start by reproducing the shown full-table query against a partitioned PostgreSQL table, then compare it with the postgres_query workaround. Read the DuckDB PostgreSQL extension's full table copy and pushdown path; done means the conditions for pushdown are established and the partitioned-table query behaves as intended.

Written by the indexing model from the issue text.

Description

The full table copy operation performed by the DuckDB PostgreSQL extension on partitioned tables, such as

SELECT * 
FROM pg.sch.tb a 
left join b on a.x=b.x
where a.dt=current_date

, checks the process for full table copy. Under what conditions is it pushed down?
now, this sql need like this:

with a as (select * from postgres_query('pg',$$select * from sch.tb$$))
select * from a 
left join b on a.x=b.x
Dominant language
C++
Stars
375
Forks
113
Avg merge
5h 32m
Merged PRs (30d)
36

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from duckdb/duckdb-postgres

All issues in duckdb/duckdb-postgres

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.