Error:Cannot uninstall extension: types in useSolution:
Copy
Ask AI
-- Attempt uninstall; the error identifies blocking columns by nameUNINSTALL EXTENSION my_extension;-- If blocked: ERROR HY000: Cannot drop extension `my_extension` as 1 column(s) depend on it,-- e.g. mydb.mytable.my_column has type MYTYPE-- Drop or alter the identified column(s), then retryDROP TABLE mydb.mytable;-- ORALTER TABLE mydb.mytable DROP COLUMN my_column;UNINSTALL EXTENSION my_extension;
Error:Failed to load VEF extension 'extension_name' with log message Extension name mismatchCause: The extension name in manifest.json doesn’t match the VEB filename or the name registered in the extension code.Debug steps:
Check VEB filename matches manifest:
Copy
Ask AI
# VEB filename: my_extension.veb# manifest.json should have:{ "name": "my_extension", # Must match VEB filename (without .veb) ...}
Verify manifest.json name field:
Copy
Ask AI
# Extract and check manifest from VEBtar -xOf /path/to/veb_dir/my_extension.veb manifest.json | grep name
Check extension registration in code:
Copy
Ask AI
// In your extension source, these must all match:VEF_GENERATE_ENTRY_POINTS( make_extension("my_extension", "1.0.0") // Must match manifest name ...)
Solution:All three names must be identical (using underscores, not hyphens):
-- Find all columns using custom extension typesSELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, DATA_TYPEFROM INFORMATION_SCHEMA.COLUMNSWHERE DATA_TYPE LIKE '%.%'ORDER BY DATA_TYPE, TABLE_SCHEMA, TABLE_NAME;
Data Safety: If tables use custom types from the extension, you must drop or alter those tables before uninstalling. Back up your data first.
Example:
Copy
Ask AI
-- Find columns using vsql_complex types before updatingSELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, DATA_TYPEFROM INFORMATION_SCHEMA.COLUMNSWHERE DATA_TYPE LIKE 'vsql_complex.%';-- If columns exist, back up data and drop/alter them first-- Then proceed with updateUNINSTALL EXTENSION vsql_complex;-- (replace .veb file)INSTALL EXTENSION vsql_complex;