lanterndata / lantern

PostgreSQL vector database extension for building AI applications
https://lantern.dev
GNU Affero General Public License v3.0
790 stars 57 forks source link

Make sure all symbols exported by our shared library are prefixed with `ldb_` in CI/CD #146

Open Ngalstyan4 opened 1 year ago

Ngalstyan4 commented 1 year ago

Bad things happen if two postgres extensions define symbols having the same name.

Make sure CI/CD fails if this is detected. Related to #145 and can probably use the same pipeline

sidenote: you can compare what are the common symbols exported by a pair of object files like this:: comm -12 <(nm -gD ./lantern.so | awk '{print $3}'| sort ) <(nm -gD ~/pgvector/vector.so | awk '{print $3}'| sort)