Closed Tishj closed 4 months ago
Maybe we should start here https://duckdb.org/docs/configuration/overview The default value says it's left empty, but this is not true
This is generated from code:
FROM duckdb_settings() WHERE name = 'temp_directory';
┌────────────────┬─────────┬────────────────────────────────────────────────┬────────────┐
│ name │ value │ description │ input_type │
│ varchar │ varchar │ varchar │ varchar │
├────────────────┼─────────┼────────────────────────────────────────────────┼────────────┤
│ temp_directory │ │ Set the directory to which to write temp files │ VARCHAR │
└────────────────┴─────────┴────────────────────────────────────────────────┴────────────┘
Hmm fair enough, yea at initialization of the db it's set
There's very little to be found in the documentation about the temporary directory
One little nugget of behavior that just stumped me while working on https://github.com/duckdb/duckdb/pull/10978 is this https://github.com/duckdb/duckdb/pull/437 In in-memory mode, the temp directory defaults to ".tmp"
And even on a persistent database, we set the temp directory to a default, always