Skip to content

Commit a4cad1a

Browse files
authored
Merge pull request #593 from mcserep/postgresql-no-superuser
Update PostgreSQL user permission in Usage Guide
2 parents 17e1a10 + ae74ab9 commit a4cad1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/usage.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ psql
3838
In the PostgreSQL command-line shell, type:
3939

4040
```sql
41-
CREATE USER compass WITH SUPERUSER LOGIN PASSWORD '<mypassword>';
41+
CREATE USER compass WITH CREATEDB LOGIN PASSWORD '<mypassword>';
4242
```
4343

4444
You can exit this shell by typing `\q` and pressing the `ENTER` key. A user
@@ -47,9 +47,9 @@ with the given name and credentials is now created.
4747
This was the most basic way to set up access to the database. In case of a live,
4848
production, public server, certain other measures need to be taken to ensure
4949
secure access. For full documentation, see:
50-
- Read more about the [`CREATE USER`](https://www.postgresql.org/docs/9.5/static/sql-createuser.html)
50+
- Read more about the [`CREATE USER`](https://www.postgresql.org/docs/12/sql-createuser.html)
5151
command.
52-
- [PostgreSQL access configuration file](https://www.postgresql.org/docs/9.5/static/auth-pg-hba-conf.html)
52+
- [PostgreSQL access configuration file](https://www.postgresql.org/docs/12/auth-pg-hba-conf.html)
5353

5454
The databases inside PostgreSQL instance will be created automatically by the
5555
CodeCompass parser, so the user needs rights for adding new database.
@@ -70,9 +70,9 @@ A manually started PostgreSQL server is automatically configured to your user,
7070
and your user only. No extra user creation or configuration needs to take place.
7171

7272
For full documentation see:
73-
- [Initialize PostgreSQL database](https://www.postgresql.org/docs/9.5/static/app-initdb.html)
73+
- [Initialize PostgreSQL database](https://www.postgresql.org/docs/12/app-initdb.html)
7474
(`-E SQL_ASCII` flag is recommended!)
75-
- [Start PostgreSQL database](https://www.postgresql.org/docs/9.5/static/app-postgres.html)
75+
- [Start PostgreSQL database](https://www.postgresql.org/docs/12/app-postgres.html)
7676

7777
## 1. Generate compilation database
7878
If you want to parse a C++ project, you have to create a [compilation database

0 commit comments

Comments
 (0)