-
- Installing from DEB/RPM packages
-
- Compiling the extension from source
-
- Notes
# For example, Debian-like 64 bits:
sudo dpkg -i omnidb-plugin_2.4.0-debian-amd64.deb
# For example, for CentOS-like 64 bits:
sudo rpm -ivU omnidb-plugin_2.4.0-centos-amd64.rpm
# Find the PostgreSQL version and path for $libdir and create a link to the specific library. For example:
sudo ln -s /opt/omnidb-plugin/omnidb_plugin_96.so /usr/lib/postgresql/9.6/lib/omnidb_plugin.so
nano /etc/postgresql/X.Y/main/postgresql.conf
shared_preload_libraries = 'omnidb_plugin'
sudo systemctl restart postgresql
psql -d <database> -f debugger_schema.sql
psql -d <database> -c 'GRANT ALL ON SCHEMA omnidb TO <user>; GRANT ALL ON ALL TABLES IN SCHEMA omnidb TO <user>;'
psql -d <database> -f debugger_schema.sql
sudo apt install postgresql-server-dev-X.Y libpq-dev
make
sudo make install
nano /etc/postgresql/X.Y/main/postgresql.conf
shared_preload_libraries = 'omnidb_plugin'
sudo systemctl restart postgresql
psql -d <database> -c 'CREATE EXTENSION omnidb_plugin'
psql -d <database> -c 'GRANT ALL ON SCHEMA omnidb TO <user>; GRANT ALL ON ALL TABLES IN SCHEMA omnidb TO <user>;'
psql -d <database> -f debugger_schema.sql
-
omnidb_plugin only works in Linux at the moment. OmniDB server can still be hosted in Windows and MacOSX, but for the debugger to work properly, it needs to connect to omnidb_plugin in PostgreSQL in Linux.
-
The omnidb_plugin extension can only be created if you compile the plugin yourself following step 2 above.
-
If you use OmniDB to connect to PostgreSQL using .pgpass file, you should create a corresponding .pgpass file inside the home of the postgres user.