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
The problem is, that another extension, pgsql-tweaks, is installing the function is_empty, but with different returning results, pgtap is returning text, pgsql-tweaks is returning a boolean, please see is_empty source.
In addition the installation of either one might fail, if the other one is already installed.
I can and will solve the problem by changing the name from is_empty to is_empty_b (the b for the boolean result), if pgtap is already installed. But it would not solve the problem to install pgtap, if pgsql-tweaks is installed.
And overwriting each others function might cause problems, as they differ in their returning data type.
Just in case, the pg-tweaks repository on GitHub is only a mirror of the one on GitLab.
The text was updated successfully, but these errors were encountered:
That might be true to experienced users, like you and me, but not to most people out there using PostgreSQL and extensions. That is at least my experience from consulting work and support on Telegram channels.
Overwriting each other's functions is a limitation of Postgres extensions. Adding them to different schemas is the only supported solution I'm aware of.
Someday I'd like to see extensions get their own namespaces separate from schemas, but I don't know how do-able it'll be to get it designed, agreed to, and implemented.
The problem is, that another extension, pgsql-tweaks, is installing the function is_empty, but with different returning results, pgtap is returning text, pgsql-tweaks is returning a boolean, please see is_empty source.
In addition the installation of either one might fail, if the other one is already installed.
I can and will solve the problem by changing the name from is_empty to is_empty_b (the b for the boolean result), if pgtap is already installed. But it would not solve the problem to install pgtap, if pgsql-tweaks is installed.
And overwriting each others function might cause problems, as they differ in their returning data type.
Just in case, the pg-tweaks repository on GitHub is only a mirror of the one on GitLab.
The text was updated successfully, but these errors were encountered: