Repository navigation
Deduplicate column names from postgres_query - #621
Merged
Merged
Conversation
Queries that return columns with same names currently cannot be run
through `postgres_query()`, because DuckDB requires table functions to
return distinct column names:
```sql
postgres=# SELECT 41, 42;
?column? | ?column?
----------+----------
41 | 42
(1 row)
```
This PR adds deduplication to the `postgres_query()` column names, the
example above is changed to: `?column?`, `?column?_1`.
staticlibs
force-pushed
the
deduplicate_query_columns
branch
from
October 15, 2026 13:24
f386cd2 to
0349639
Compare
carlopi
pushed a commit
to maiadegraaf/duckdb
that referenced
this pull request
Oct 15, 2026
This PR updates Postgres and SQLite bringing in the following fixes: Postgres: - duckdb/duckdb-postgres#617 - duckdb/duckdb-postgres#620 - duckdb/duckdb-postgres#621 SQLite: - duckdb/duckdb-sqlite#256 - duckdb/duckdb-sqlite#258 Additonally SQLite patch `0003-check-file-access-of-local-databases` is absorbed.
carlopi
pushed a commit
to maiadegraaf/duckdb
that referenced
this pull request
Oct 15, 2026
This PR updates Postgres and SQLite bringing in the following fixes: Postgres: - duckdb/duckdb-postgres#617 - duckdb/duckdb-postgres#620 - duckdb/duckdb-postgres#621 SQLite: - duckdb/duckdb-sqlite#256 - duckdb/duckdb-sqlite#258 Additonally SQLite patch `0003-check-file-access-of-local-databases` is absorbed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Queries that return columns with same names currently cannot be run through
postgres_query(), because DuckDB requires table functions to return distinct column names:This PR adds deduplication to the
postgres_query()column names, the example above is changed to:?column?,?column?_1.