Replies: 8 comments
-
Hi, I am assuming you are implementing connection pool in a C++ extension? I wonder whether it is necessary to use custom extension in your setup, would it be possible to use some existing generic connection pool lib on "client" (Python, Java etc) side instead? |
Beta Was this translation helpful? Give feedback.
-
db_pool.txt |
Beta Was this translation helpful? Give feedback.
-
I did not run it ( |
Beta Was this translation helpful? Give feedback.
-
when I init the connections in the pool I attach a couple of databases on each connection. The current database will always be MEMORY. When I query using a connection from the pool, I always using fully qualified name for tables or views. For example Select * from dbname.schemaname.tablename. |
Beta Was this translation helpful? Give feedback.
-
This invalidates my guesses. Still the error looks a bit weird:
Some kind of mix up between multiple DuckLake instances is going on. Another guess: assuming from the pool config that the catalog is in Postgres, perhaps you are hitting #283? |
Beta Was this translation helpful? Give feedback.
-
Yes. It's possible that it's related to the postgres connector.
…On Thu, Jul 17, 2025, 5:38 PM Alex Kasko ***@***.***> wrote:
@sjoe77 <https://github.com/sjoe77>
This invalidates my guesses. Still the error looks a bit weird:
__ducklake_metadata_my_ducklake.ducklake_data_file
__ducklake_metadata_auth_data"."public".ducklake_data_file
Some kind of mix up between multiple DuckLake instances is going on.
Another guess: assuming from the pool config that the catalog is in
Postgres, perhaps you are hitting #283
<#283>?
—
Reply to this email directly, view it on GitHub
<#299 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALFTAJDWS6OO6HWVYXW6PI33JAJVHAVCNFSM6AAAAACBX67TQGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZZHAYTQOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
A single connection initialized on thread local pattern works as a workaround but there is a performance penalty |
Beta Was this translation helpful? Give feedback.
-
Happy to report my issue is fixed. I updated duckdb from 1.3.1 to 1.3.2 which fixed it. https://github.com/duckdb/duckdb/releases/tag/v1.3.2, Key Connection/Concurrency Fixes:
My guess is most Relevant Fix: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am not sure what is a proper way to create a connection pool for duckdb with ducklake extension. I notice that after running for some time properly, I am seeing these kind of errors which indicative of bad connection in the pool. Restarting the server helps but the problem come back as connection are used and released. its entirely possible my connection pool implementation has a bug.
detail": "UNKNOWN: [FlightSQL] Catalog Error: Failed to get data file list from DuckLake: Table with name ducklake_data_file does not exist!\nDid you mean \"__ducklake_metadata_my_ducklake.ducklake_data_file\"?\n\nLINE 3: FROM \"__ducklake_metadata_auth_data\".\"public\".ducklake_data_file...\n
.Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions