I would like to install the following PostgreSQL Extension quantile.
Neither it is installed by default:
~ psql -c "create extension quantile"
ERROR: extension "quantile" is not available
DETAIL: Could not open extension control file "/nix/store/8h3q6yf1zg3rs5hsb7r9zvqvcvhry6v6-postgresql-and-plugins-16.1/share/postgresql/extension/quantile.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.
nor can I install it using pgxn:
~ pgxn install quantile
pgxn: command not found
And building on my own is not so easy either:
➜ quantile git:(master) make install
...
quantile.c:14:10: fatal error: 'postgres.h' file not found
#include "postgres.h"
How to install additional extensions?
Voilà the homepage of quantile: