postgre.rst
changeset 1683 d99b4a277679
child 1684 88f1d11d2adf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/postgre.rst	Thu Feb 12 19:28:09 2015 +0200
@@ -0,0 +1,29 @@
+.. -*- coding: utf-8; -*-
+.. include:: HEADER.rst
+
+==========
+ Postgre.
+==========
+.. contents::
+
+Installing on Debian.
+=====================
+
+Install and create new user and database::
+
+  $ sudo apt-get install postgresql postgresql-client
+  $ sudo su - postgres
+  postgres=# CREATE USER "mypguser" WITH PASSWORD 'mypguserpass';
+  postgres=# CREATE DATABASE "mypgdatabase" OWNER "mypguser";
+  postgres=# \q
+
+Connect as user ``mypguser`` to new database::
+
+  $ su - mypguser
+  $ psql mypgdatabase
+
+..
+
+  https://wiki.debian.org/PostgreSql
+    Debian wiki instructions.
+