Commit 8843130
Include memory.main in Flight SQL worker session search_path
When a Flight SQL worker session initializes, initSearchPath() sets
search_path to '<username>,main'. With DuckLake as the default catalog,
'main' resolves to 'ducklake.main', excluding memory.main where
pg_catalog macros (pg_get_userbyid, format_type, etc.) are created.
This breaks psql backslash commands (\dt, \d, etc.) on K8s shared
warm workers.
The non-K8s control plane path doesn't hit this because it leaves
search_path unset (empty/default), which lets DuckDB resolve functions
across all catalogs.
Fix by appending memory.main to the search_path in initSearchPath().
When DuckLake isn't active, memory.main is redundant but harmless.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9729c52 commit 8843130
3 files changed
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
628 | 633 | | |
629 | | - | |
| 634 | + | |
630 | 635 | | |
631 | 636 | | |
632 | 637 | | |
633 | | - | |
| 638 | + | |
634 | 639 | | |
635 | 640 | | |
636 | 641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | 1268 | | |
1275 | 1269 | | |
1276 | 1270 | | |
| |||
0 commit comments