keep rb_exsit definition for backward compatible with verion less tha…#63
Conversation
|
Why use a higher-version .so file to create a lower-version extension? This behavior is not supported. |
|
While the default version of roaringbitmap listed in It might not be a good practice to install older version against later .so file. But the fact that old versions are listed in system catalogue implies that they are supported. This also happens in many other extensions. There are a couple of ways to fix it:
|
|
There is indeed a real-world scenario where upgrading the PostgreSQL major version while simultaneously upgrading the pg_roaringbitmapextension causes the upgrade to fail. During the upgrade process, pg_dumpand pg_restoreare used to back up and restore user-defined functions. Incompatibility in pg_roaringbitmapleads to the failure of creating the rb_containsfunction. |
Function
rb_exsitis renamed torb_existsin v1.0.Even though there is an attempt to replace the function definition in
roaringbitmap--0.5--1.0.sqlfor migration, it still cause problem if user specifically install with a version less than 1.0 as shown below:This commit retains the definition of
rb_exsitfor backward compatibility that allow user to successfully create roaringbitmap with old version and migrate to newer version without error during installation or runtime.