From 9d05c9ca73c2b501744d528475532ab728318bde Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 19 Mar 2023 10:06:45 +0100 Subject: Initial version of "ppq" - portable PostgreSQL This allows running PostgreSQL locally without having to set up a system-wide service. It is portable in the sense that you can move the directory around, and you can run multiple instances side-by-side. --- .envrc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .envrc (limited to '.envrc') diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..015c979 --- /dev/null +++ b/.envrc @@ -0,0 +1,11 @@ +# Settings for ppq configuration +export PPQ_POSTGRES_VERSION=15 +export PPQ_POSTGRES_DIR=$(expand_path postgres) +export PPQ_POSTGRES_DATA_DIR=$(expand_path postgres/data) + +# Settings for libpq-based clients and postgres itself +export PGDATA="${PPQ_POSTGRES_DATA_DIR}" +export PGHOST="${PPQ_POSTGRES_DATA_DIR}" +export PGUSER=postgres + +use nix -- cgit v1.2.3