@@ -462,7 +462,7 @@ the files may be located in ``/var/lib/pgsql/data``.
462
462
The first task is to create both the database and the user under
463
463
which the servers will access it. A number of steps are required:
464
464
465
- 1. Log into PostgreSQL as "root ":
465
+ 1. Log into PostgreSQL as "postgres ":
466
466
467
467
.. code-block :: console
468
468
@@ -489,6 +489,10 @@ which the servers will access it. A number of steps are required:
489
489
CREATE ROLE
490
490
postgres=# GRANT ALL PRIVILEGES ON DATABASE database-name TO user-name;
491
491
GRANT
492
+ postgres=# \c database-name
493
+ You are now connected to database "database-name" as user "postgres".
494
+ postgres=# GRANT ALL PRIVILEGES ON SCHEMA public TO user-name;
495
+ GRANT
492
496
postgres=#
493
497
494
498
4. Exit PostgreSQL:
@@ -587,6 +591,33 @@ The PostgreSQL database schema can be upgraded using the same tool and
587
591
commands as described in :ref: `mysql-upgrade `, with the exception that the "pgsql"
588
592
database backend type must be used in the commands.
589
593
594
+ If you upgraded your Postgres database from a version prior 15.0, you need to grant
595
+ the additional privileges to the user:
596
+
597
+ First, log into PostgreSQL as "postgres":
598
+
599
+ .. code-block :: console
600
+
601
+ $ sudo -u postgres psql -d database-name -U postgres
602
+ Enter password:
603
+ postgres=#
604
+
605
+ Next, grant the access to the ``public `` schema.
606
+
607
+ .. code-block :: psql
608
+
609
+ postgres=# GRANT ALL PRIVILEGES ON SCHEMA public TO user-name;
610
+ GRANT
611
+ postgres=#
612
+
613
+ Now, quit the PostgreSQL client:
614
+
615
+ .. code-block :: psql
616
+
617
+ postgres=# \q
618
+ Bye
619
+ $
620
+
590
621
Use the following command to check the current schema version:
591
622
592
623
.. code-block :: console
0 commit comments