Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Running PostgreSQL with kv_fdw.so and RocksDB 7.0.2 #47

Open
kt5965 opened this issue Nov 21, 2023 · 1 comment
Open

Issues Running PostgreSQL with kv_fdw.so and RocksDB 7.0.2 #47

kt5965 opened this issue Nov 21, 2023 · 1 comment

Comments

@kt5965
Copy link

kt5965 commented Nov 21, 2023

Environment: Ubuntu Server 20.04, PostgreSQL-13, RocksDB-7.0.2

I have attempted to use pgrocks-fdw with RocksDB version 7.0.2. While all compilation steps completed successfully, I am encountering issues when trying to run PostgreSQL. The log file shows the following error:

2023-11-21 06:02:37.735 UTC [56120] LOG: database system is shut down
2023-11-21 06:02:37.981 UTC [73428] FATAL: could not load library "/usr/lib/postgresql/13/lib/kv_fdw.so": /usr/lib/postgresql/13/lib/kv_fdw.so: undefined symbol: _ZTIN7rocksdb12CustomizableE
This error indicates an issue with loading the kv_fdw.so library, specifically with the undefined symbol _ZTIN7rocksdb12CustomizableE.

Ensured all compilation steps were correctly followed
Verified that the kv_fdw.so library is in the correct location
Checked for any possible compatibility issues with the current setup
Additional Context:
Due to the requirements of other external sources and dependencies, it is necessary for me to use RocksDB version 7.0 or higher. However, it appears that there might be compatibility issues between pgrocks-fdw and RocksDB 7.0.2.

Question:
Is the issue I'm experiencing related to the version of RocksDB? Has anyone successfully used pgrocks-fdw with RocksDB version 7.0.2 or higher, and if so, were there any specific steps or modifications required to resolve similar issues?

Any guidance or suggestions on how to resolve this issue would be greatly appreciated.

@cardze
Copy link

cardze commented Jul 2, 2024

I solved this by adding -fPIC when compiling rocksDB like this

sudo DEBUG_LEVEL=0 EXTRA_CXXFLAGS=-fPIC EXTRA_CFLAGS=-fPIC USE_RTTI=1 make shared_lib install-shared -j$(nproc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants