Skip to content

Commit

Permalink
Merge pull request #4182 from GeotrekCE/doc_pg_upgrade_review
Browse files Browse the repository at this point in the history
📝 [Documentation] Upgrade doc / PG upgrade review
  • Loading branch information
submarcos authored Jun 10, 2024
2 parents 9732cfd + bd7d89f commit 5c023b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ CHANGELOG
2.107.0+dev (XXXX-XX-XX)
------------------------

**Documentation**

- Improve PostgreSQL upgrade documentation

2.107.0 (2024-06-07)
------------------------
Expand Down
8 changes: 4 additions & 4 deletions docs/install/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Recreate user and database:
::

sudo cp /etc/postgresql/10/main/pg_hba.conf /etc/postgresql/14/main/pg_hba.conf
sudo systemctl restart PostgreSQL
sudo systemctl restart postgresql


You can now restore your database dump.
Expand All @@ -229,14 +229,14 @@ You can now restore your database dump.
.. note::

Note you have to use ``-h 127.0.0.1`` to connect with the ``geotrek`` user (this user cannot connect with the default unix socket). Connecting with ``geotrek`` is important for restored entities to have the right owner.
Some errors can occurs, around extensions creation or spatial_ref_sys table content.
Some errors can occurs, around extensions creation or ``spatial_ref_sys`` table content.
This is normal. We already create these extensions on previous steps.


.. warning::

Any special configuration or tune setting in your ``postgresql.conf`` will not be reported,
you should report configuration yourself in ``/etc/postgresql/14/postgresql.conf``.
you should report configuration yourself in ``/etc/postgresql/14/main/postgresql.conf``.
Then restart your PostgreSQL

::
Expand All @@ -260,7 +260,7 @@ You can now upgrade your Geotrek-admin, and check that the right database is use

.. note::

If you want to use default 5432 port, you should change it in ``postgresql.conf``,
If you want to use default 5432 port, you should change it in ``/etc/postgresql/14/main/postgresql.conf``,
restart PostgreSQL service, and change it by reconfiguring Geotrek-admin.

::
Expand Down

0 comments on commit 5c023b3

Please sign in to comment.