I studied compatibility and extensibility across database systems after research with PostgreSQL extensions exposed code-copying and load-order problems. Our work combined automated testing of extension combinations with a broader evaluation of database extension ecosystems.
I described Postgres’ extension ecosystem as the most expansive and diverse extension ecosystem compared to every other DBMS.
Our research found that extensions can interfere with each other and cause incorrect behavior when the DBMS lacks guard rails.
The motivation for the paper started in 2021, when we switched our research to target Postgres via extensions.
We found many extensions copied PostgreSQL code into their own code.
We also hit problems when we loaded extensions in the wrong order.
Abi created a torture chamber that downloads every extension we could find and automatically installs them in different combinations to see what breaks.
We expanded our analysis to include other popular open-source DBMSs, but could not break them.
About 16% of PostgreSQL extensions are incompatible with at least one other extension.
No system hits the sweet spot of allowing for extensibility while maintaining systems safety.
I advocate for a standard plugin API (think POSIX) that allows compatibility across systems.
I thanked @marcoslot + @dave_andersen for their collaboration on this project.
I shared the project link https://t.co/NHYLvMCk8w.
Common problems include not enforcing APIs, undefined behaviors, and memory errors.
Heavyweight extensions like @citusdata and @TimescaleDB have the most issues because they touch more DBMS internal parts.
I described the paper as the most complete eval of DB extensions/plugins.
The evaluation analyzes PostgreSQL, MySQL, MariaDB, SQLite, DuckDB, and Redis.
I described the PostgreSQL ecosystem as fraught w/ footguns.
I said other DBMSs have fewer extns but less problems.
I described DuckDB as having the cleanest API.
The shared citation identifies the paper as appearing in Vol:18 No:6.