This post demonstrates how to create a simple PostgreSQL as a service platform using FreeBSD Jails.The post shows how to install PostgreSQL into the base, clone the ZFS snapshot and create new Jail configuration based on a few parameters.A script is created to handle the creation and the initialization of PostgreSQL and starting up PostgreSQL.This method demonstrates how to easily add additional PostgreSQL jails.The size of the PostgreSQL Jail on disk is impressive--a bit more than a GB for a complete PostgreSQL service.