From f110d7d6841c1e4bbe4f3ae6c198e682feff38a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sat, 14 Jun 2014 13:48:04 +0200 Subject: [PATCH] [Docs] Add PostgreSQL setup to docs --- doc/dev/index.rst | 1 + doc/dev/postgres-setup.rst | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 doc/dev/postgres-setup.rst diff --git a/doc/dev/index.rst b/doc/dev/index.rst index d26d9c1d..78bf87bf 100644 --- a/doc/dev/index.rst +++ b/doc/dev/index.rst @@ -30,3 +30,4 @@ Contents couchdb-docs couchdb-views python3 + postgres-setup diff --git a/doc/dev/postgres-setup.rst b/doc/dev/postgres-setup.rst new file mode 100644 index 00000000..5792303f --- /dev/null +++ b/doc/dev/postgres-setup.rst @@ -0,0 +1,14 @@ +PostgreSQL Setup +================ + +Use the following to set up a local PostgreSQL. + +.. code-block:: sql + + CREATE USER mygpo WITH PASSWORD 'mygpo'; + CREATE DATABASE mygpo; + CREATE DATABASE test_mygpo; + GRANT ALL PRIVILEGES ON DATABASE mygpo to mygpo; + GRANT ALL PRIVILEGES ON DATABASE test_mygpo to mygpo; + ALTER DATABASE mygpo OWNER TO mygpo; + ALTER DATABASE test_mygpo OWNER TO mygpo; -- 2.11.4.GIT