This library contains a single PostgreSQL extension, a RGB color data type, along with convenience functions for constructing, converting, and indexing RGB colors.
To build it, just do this:
make
make installcheck
make installThe RGB data type has no dependencies other than PostgreSQL.
- PostgreSQL 13 or higher installed with development headers (
postgresql-server-dev-13or equivalent). pg_configavailable in your PATH.- GCC and GNU Make
The recommended development workflow is to start the provided database container using docker compose:
docker compose up dbAnd then access the container via shell:
docker exec -it <ID> /bin/bashThe container already has all dependencies and a GNU build toolchain installed.
The container mounts this source directory at /app. A development convenience
script is available in the scripts directory and is called compose.sh.
For more information, please read the documentation.