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
We had implemented our own http caching in #88 when nothing like that
existed yet. Now there are two different threads that are implementing
something like this in a better way than we have done. So this PR
removes our custom caching code from our codebase. Instead in a future
release we'll make sure that pg_duckdb works well with these at least
one of these other caching solutions.
For reference the two projects that are currently implementing caching
are:
1. An official in-memory cache by DuckDB, which will eventually improved
to also support on-disk caching:
duckdb/duckdb#16463
2. A community provided extension called `cache_httpfs`:
https://github.com/dentiny/duck-read-cache-fs
---------
Co-authored-by: Yves <yves@motherduck.com>
Copy file name to clipboardExpand all lines: docs/extensions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The following extensions are installed by default:
4
4
5
-
* httpfs - note that httpfs was forked to add [`duckdb.cache`](functions.md#cache)
5
+
* httpfs
6
6
* json
7
7
8
8
Supported extensions for installation are:
@@ -16,7 +16,7 @@ Installing other extensions may work, but is at your own risk.
16
16
17
17
By default known extensions are allowed to be automatically installed and loaded when a DuckDB query depends on them. This behaviour can be configured using the [`duckdb.autoinstall_known_extensions`](settings.md#duckdbautoinstall_known_extensions) and [`duckdb.autoload_known_extensions`](settings.md#duckdbautoload_known_extensions) settings.
18
18
19
-
It's also possible to manually install an extension. This can be useful when this autoinstall/autoaload behaviour is disabled, or when DuckDB fails to realise an extension is necessary to execute the query. Installing an extension requires superuser.
19
+
It's also possible to manually install an extension. This can be useful when this autoinstall/autoload behaviour is disabled, or when DuckDB fails to realise an extension is necessary to execute the query. Installing an extension requires superuser.
Copy file name to clipboardExpand all lines: docs/functions.md
-50Lines changed: 0 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,6 @@ All of the DuckDB [json functions and aggregates](https://duckdb.org/docs/data/j
26
26
| :--- | :---------- |
27
27
|[`approx_count_distinct`](https://duckdb.org/docs/sql/functions/aggregates.html#approximate-aggregates)|Gives the approximate count of distinct elements using HyperLogLog|
28
28
29
-
## Cache Management Functions
30
-
31
-
| Name | Description |
32
-
| :--- | :---------- |
33
-
|[`duckdb.cache`](#cache)| Caches a Parquet or CSV file to disk |
34
-
|[`duckdb.cache_info`](#cache_info)| Returns metadata about cached files |
35
-
|[`duckdb.cache_delete`](#cache_delete)| Deletes a file from the cache |
36
-
37
29
## DuckDB Administration Functions
38
30
39
31
| Name | Description |
@@ -257,48 +249,6 @@ Further information:
257
249
| :--- | :--- | :---------- |
258
250
| path | text | The path, either to a remote httpfs location or a local location (if enabled) of the delta dataset to read. |
259
251
260
-
#### <aname="cache"></a>`duckdb.cache(path TEXT, type TEXT) -> bool`
261
-
262
-
Caches a parquet or CSV file to local disk. The file is downloaded synchronously during the execution of the function. Once cached, the cached file is used automatically whenever that URL is used in other httpfs calls, provided that the remote data has not changed. Data is stored based on the eTag of the remote file.
263
-
264
-
Note that cache management is not automated. Cached data must be deleted manually.
265
-
266
-
##### Required Arguments
267
-
268
-
| Name | Type | Description |
269
-
| :--- | :--- | :---------- |
270
-
| path | text | The path to a remote httpfs location to cache. |
271
-
| type | text | File type, either `parquet` or `csv`|
Copy file name to clipboardExpand all lines: test/regression/expected/extensions.out
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@ SET duckdb.allow_community_extensions = true;
3
3
SELECT * FROM duckdb.query($$ SELECT extension_name, loaded, installed, installed_from FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$);
@@ -35,8 +35,8 @@ SELECT last_value FROM duckdb.extensions_table_seq;
35
35
SELECT * FROM duckdb.query($$ SELECT extension_name, loaded, installed, installed_from FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$);
@@ -61,8 +61,8 @@ SELECT last_value FROM duckdb.extensions_table_seq;
61
61
SELECT * FROM duckdb.query($$ SELECT extension_name, loaded, installed, installed_from FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$);
0 commit comments