Collection of instruments for particular PostgreSQL servers.
Composed in Rust and utilises the pgrx framework.
Ensure that Rust and pgrx are installed on your systems, as they are essential for development. Instructions for utilising Rust and pgrx can be found on the aforementioned websites.
The build utilises a containerised version of PostgreSQL.
Please see documentation for more details.
The extension can be installed directly from the GitHub repository.
Examples below require curl.
Replace pg-16-test with name of your container.
curl -sL https://raw.githubusercontent.com/bpsbits-org/bfn/main/scripts/deploy-pg16.sh -o deploy-pg16.sh
bash ./deploy-pg16.shReplace pg-16-test with name of your container.
podman exec --user root -it pg-16-test bash -c "curl -sL https://raw.githubusercontent.com/bpsbits-org/bfn/main/scripts/deploy-pg16.sh | bash"Installs extension into schema bfn.
-- install bfn in schema bfn
create extension bfn schema bfn;Check version:
-- Check bfn version
select bfn.bfn_version();If the schema bfn does not exist, run:
-- Create schema bfn
create schema bfn authorization postgres;Please be advised that if you require an upgrade, you can create an upgrade file yourself.
In the provided example:
2.0.1- version to upgrade2.0.0- currently installed version
cp /usr/share/postgresql/16/extension/bfn--2.0.1.sql /usr/share/postgresql/16/extension/bfn--2.0.0--2.0.1.sqlUpdate extension:
alter extension bfn update;