sudo su postgres
su - ubuntu
Service
sudo systemctl start postgresql@9.6-main.service
/usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
Postgres Data
/var/lib/postgresql/9.6/main
sudo su postgres
postgres-# \du
List of roles
Role name | Attributes | Member of
-------------+------------------------------------------------------------+-----------
flectra | Superuser, Create role, Create DB | {}
noxma | Create DB | {}
odoo | Create DB | {}
odoo11 | Create DB | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
sentry_user | | {}
postgres-# \list
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+--------------------------
FlectraDB | flectra | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
SWU | odoo | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
noxmadb | noxma | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
odoo11CE | odoo | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
sentry_db | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres +
| | | | | sentry_user=CTc/postgres
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
su - ubuntu
Service
sudo systemctl start postgresql@9.6-main.service
/usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
Postgres Data
/var/lib/postgresql/9.6/main
sudo su postgres
postgres-# \du
List of roles
Role name | Attributes | Member of
-------------+------------------------------------------------------------+-----------
flectra | Superuser, Create role, Create DB | {}
noxma | Create DB | {}
odoo | Create DB | {}
odoo11 | Create DB | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
sentry_user | | {}
postgres-# \list
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+--------------------------
FlectraDB | flectra | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
SWU | odoo | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
noxmadb | noxma | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
odoo11CE | odoo | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
sentry_db | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres +
| | | | | sentry_user=CTc/postgres
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres