You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `ducklake_connection_string` | The DuckLake metadata location (e.g., `s3://bucket/path/metadata.ducklake`). If omitted, the value from `from: ducklake:<connection_string>` is used. |
76
-
| `ducklake_name` | The name to attach the DuckLake catalog as in DuckDB. Default: `ducklake`. |
77
-
| `ducklake_open` | Path to an existing DuckDB file for persistent storage. If not provided, an in-memory DuckDB instance is used. |
| `ducklake_connection_string` | The DuckLake metadata location (e.g., `s3://bucket/path/metadata.ducklake`). If omitted, the value from `from: ducklake:<connection_string>` is used. |
76
+
| `ducklake_name` | The name to attach the DuckLake catalog as in DuckDB. Default: `ducklake`. |
77
+
| `ducklake_open` | Path to an existing DuckDB file for persistent storage. If not provided, an in-memory DuckDB instance is used. |
78
+
| `ducklake_aws_region` | Optional. The AWS region for S3 storage. Default: `us-east-1`when explicit credentials are provided. |
79
+
| `ducklake_aws_access_key_id` | Optional. The AWS access key ID for S3 storage. Must be set together with `ducklake_aws_secret_access_key`. |
80
+
| `ducklake_aws_secret_access_key` | Optional. The AWS secret access key for S3 storage. Must be set together with `ducklake_aws_access_key_id`. |
|`index_scan_percentage`| Optimizer hint: fraction of rows below which index scan is preferred over table scan. |
63
-
|`index_scan_max_count`| Optimizer hint: maximum rows for which index scan is preferred. |
62
+
|`duckdb_index_scan_percentage`| Optimizer hint: fraction of rows below which index scan is preferred over table scan. |
63
+
|`duckdb_index_scan_max_count`| Optimizer hint: maximum rows for which index scan is preferred. |
64
64
|`on_refresh_sort_columns`| Columns to sort by during refresh. **Caution**: current implementation uses `CREATE OR REPLACE`, which drops constraints and indexes. |
65
65
66
66
DuckDB supports traditional B-tree / ART indexes via SQL `CREATE INDEX` against the accelerated table. Define them once the dataset schema is stable.
| Slow first startup after restart | WAL replay due to ungraceful shutdown. | Use graceful shutdown (`SIGTERM`). Subsequent starts will be fast once the checkpoint is clean. |
95
95
| OOM on refresh | DuckDB memory limit too high for container cgroup. | Set a `memory_limit` pragma via the connection string. |
96
96
| Disk fills during large queries | Spill directory on undersized volume. | Point `runtime.query.temp_directory` at a larger volume; monitor free space. |
97
-
| Query uses table scan when an index exists |`index_scan_percentage` / `index_scan_max_count` too low. | Tune thresholds; `EXPLAIN` to confirm. |
97
+
| Query uses table scan when an index exists |`duckdb_index_scan_percentage` / `duckdb_index_scan_max_count` too low. | Tune thresholds; `EXPLAIN` to confirm. |
98
98
| Indexes disappear after refresh |`on_refresh_sort_columns` triggers `CREATE OR REPLACE`. | Re-create indexes post-refresh, or avoid sort-column refreshes until the underlying behavior is updated. |
99
99
|`IO Error: Could not set lock on file`| Another process holds a write lock. | Ensure single-writer semantics; verify no other Spice instance is using the same file. |
|`pg_sslrootcert`| CA bundle path for `verify-ca` / `verify-full`.|
32
+
|`pg_sslrootcert`| CA bundle file path for `verify-ca` / `verify-full`. |
33
33
34
34
For production, use `pg_sslmode: verify-full` and source passwords from a [secret store](../../secret-stores/). The accelerator sets `application_name` on each connection to the Spice.ai version, which surfaces in `pg_stat_activity` for attribution.
35
35
@@ -43,7 +43,7 @@ The accelerator creates and writes tables in the configured database. Grant the
Copy file name to clipboardExpand all lines: website/docs/components/data-accelerators/postgres/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,13 @@ The connection to PostgreSQL can be configured by providing the following `param
32
32
- `pg_user`: The username to connect with.
33
33
- `pg_pass`: The password to connect with. Use the [secret replacement syntax](../../components/secret-stores) to load the password from a secret store, e.g. `${secrets:my_pg_pass}`.
34
34
- `pg_sslmode`: Optional. Specifies the SSL/TLS behavior for the connection, supported values:
35
-
- `verify-full`: (default) This mode requires an SSL connection, a valid root certificate, and the server host name to match the one specified in the certificate.
35
+
- `verify-full`: This mode requires an SSL connection, a valid root certificate, and the server host name to match the one specified in the certificate.
36
36
- `verify-ca`: This mode requires a TLS connection and a valid root certificate.
37
37
- `require`: This mode requires a TLS connection.
38
-
- `prefer`: This mode will try to establish a secure TLS connection if possible, but will connect insecurely if the server does not support TLS.
38
+
- `prefer`: (default) This mode will try to establish a secure TLS connection if possible, but will connect insecurely if the server does not support TLS.
39
39
- `disable`: This mode will not attempt to use a TLS connection, even if the server supports it.
40
40
- `allow`: This mode will try a non-TLS connection first, then retry with TLS if the server requires it.
41
-
- `pg_sslrootcert`: Optional parameter specifying the path to a custom PEM certificate that the connector will trust.
41
+
- `pg_sslrootcert`: Optional. Path to a custom PEM certificate file that the connector will trust.
42
42
- `pg_connection_pool_min`: Optional. The minimum number of connections to keep open in the pool, lazily created when requested. Default is `5`.
43
43
- `connection_pool_size`: Optional. The maximum number of connections created in the connection pool. Default is `10`.
0 commit comments