-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronise extensions before reconnect (#316)
- Loading branch information
Showing
9 changed files
with
185 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
SET duckdb.force_execution TO false; | ||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
NOTICE: result: extension_name loaded installed | ||
VARCHAR BOOLEAN BOOLEAN | ||
[ Rows: 4] | ||
cached_httpfs true true | ||
json true true | ||
parquet true true | ||
pgduckdb true false | ||
|
||
|
||
raw_query | ||
----------- | ||
|
||
(1 row) | ||
|
||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
last_value | ||
------------ | ||
1 | ||
(1 row) | ||
|
||
-- INSERT SHOULD TRIGGER UPDATE OF EXTENSIONS | ||
INSERT INTO duckdb.extensions (name, enabled) VALUES ('icu', TRUE); | ||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
last_value | ||
------------ | ||
2 | ||
(1 row) | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
NOTICE: result: extension_name loaded installed | ||
VARCHAR BOOLEAN BOOLEAN | ||
[ Rows: 5] | ||
cached_httpfs true true | ||
icu true true | ||
json true true | ||
parquet true true | ||
pgduckdb true false | ||
|
||
|
||
raw_query | ||
----------- | ||
|
||
(1 row) | ||
|
||
INSERT INTO duckdb.extensions (name, enabled) VALUES ('aws', TRUE); | ||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
last_value | ||
------------ | ||
3 | ||
(1 row) | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
NOTICE: result: extension_name loaded installed | ||
VARCHAR BOOLEAN BOOLEAN | ||
[ Rows: 6] | ||
aws true true | ||
cached_httpfs true true | ||
icu true true | ||
json true true | ||
parquet true true | ||
pgduckdb true false | ||
|
||
|
||
raw_query | ||
----------- | ||
|
||
(1 row) | ||
|
||
-- DELETE SHOULD TRIGGER UPDATE OF EXTENSIONS | ||
-- But we do not unload for now (would require a restart of DuckDB) | ||
DELETE FROM duckdb.extensions WHERE name = 'aws'; | ||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
last_value | ||
------------ | ||
4 | ||
(1 row) | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
NOTICE: result: extension_name loaded installed | ||
VARCHAR BOOLEAN BOOLEAN | ||
[ Rows: 6] | ||
aws true true | ||
cached_httpfs true true | ||
icu true true | ||
json true true | ||
parquet true true | ||
pgduckdb true false | ||
|
||
|
||
raw_query | ||
----------- | ||
|
||
(1 row) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,4 +78,3 @@ pgduckb_secret_0 | |
|
||
(1 row) | ||
|
||
SET duckdb.force_execution TO true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
SET duckdb.force_execution TO false; | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
|
||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
|
||
-- INSERT SHOULD TRIGGER UPDATE OF EXTENSIONS | ||
|
||
INSERT INTO duckdb.extensions (name, enabled) VALUES ('icu', TRUE); | ||
|
||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
|
||
INSERT INTO duckdb.extensions (name, enabled) VALUES ('aws', TRUE); | ||
|
||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); | ||
|
||
-- DELETE SHOULD TRIGGER UPDATE OF EXTENSIONS | ||
-- But we do not unload for now (would require a restart of DuckDB) | ||
DELETE FROM duckdb.extensions WHERE name = 'aws'; | ||
|
||
SELECT last_value FROM duckdb.extensions_table_seq; | ||
|
||
SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters