From 7277ecb7798daf33c7a5d8874c291c74f62ba03a Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Wed, 16 Jul 2025 09:23:36 -0400 Subject: [PATCH] update README for postgres setup - gotta GRANT CREATE ON PUBLIC - postgis - redis_fdw + commands on setting up the foreign server and user mapping --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9dc62a2b1ae3a8f88399da0a525e02d4f35616c..a91e599924331bcf015a6e36470ed3d08f2a4d37 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,30 @@ -Make sure to use git clone --recursive on this repository to get the submodule. +Make sure to use git clone --recursive on this repository to get the submodule. See [here](https://github.com/pg-redis-fdw/redis_fdw) +for instructions on installing the Redis foreign data wrapper. See [here](https://github.com/postgis/postgis/blob/master/README.postgis) for instructions on installing PostGIS. +In both cases you can also check your systems package repositories. sudo apt install postgresql-11 postgresql-client sudo -u postgres psql CREATE DATABASE jmp; GRANT ALL ON DATABASE jmp TO unix_user; + GRANT CREATE ON SCHEMA public TO unix_user; \c jmp CREATE EXTENSION btree_gist; CREATE EXTENSION citext; CREATE EXTENSION pgcrypto; + CREATE EXTENSION redis_fdw; + CREATE EXTENSION postgis; + CREATE SERVER redis_server + FOREIGN DATA WRAPPER redis_fdw + OPTIONS ( + address '127.0.0.1', + port '6379' + ); + GRANT USAGE ON FOREIGN SERVER redis_server TO unix_user; + CREATE USER MAPPING + FOR PUBLIC + SERVER redis_server + OPTIONS (user 'default'); + exit sudo apt install sqitch cd schemas