Skip to content

Commit 128a069

Browse files
authored
Merge branch 'master' into v10.9-documentation
2 parents f3a4bcb + 8992b9c commit 128a069

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

source/deploy/postgres-migration.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,28 @@ You can check for the default ``search_path`` by running the following command:
156156
157157
SELECT boot_val FROM pg_settings WHERE name='search_path';
158158
159+
Permission issues when accessing the schema in PostgreSQL
160+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161+
162+
If you run into a permission issue during step 2 where the command reports a permission issue similar to the following:
163+
164+
.. code-block:: text
165+
166+
An Error Occurred: could not check schema owner: the user “mmuser” is not owner of the “public” schema
167+
168+
Ensure that the ``mmuser`` user in PostgreSQL is the owner of the schema.
169+
170+
1. Connect to PostgreSQL using ``sudo -u postgres psql``.
171+
2. Select the ``mattermost`` database using ``\c mattermost``. Verify you are using the right database by running ``SELECT current_database();``. The command should output ``mattermost``.
172+
3. Run the following commands:
173+
174+
.. code-block:: sql
175+
176+
ALTER SCHEMA public OWNER TO mmuser;
177+
GRANT ALL ON SCHEMA public TO mmuser;
178+
179+
Then, re-run the command from step 2.
180+
159181
Contact Support
160182
---------------
161183

source/deploy/server/preparations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ PostgreSQL v13+ is required for Mattermost server installations. :doc:`MySQL dat
8080
.. code-block:: sql
8181
8282
ALTER DATABASE mattermost OWNER TO mmuser;
83-
GRANT USAGE, CREATE ON SCHEMA PUBLIC TO mmuser;
83+
GRANT USAGE, CREATE ON SCHEMA public TO mmuser;
8484
8585
3. Configure PostgreSQL for remote connections (if database is on a separate server):
8686

source/deploy/server/trouble-postgres.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ From Mattermost v8.0, :ref:`PostgreSQL <deploy/software-hardware-requirements:da
55

66
PostgreSQL v15 introduces changes that may affect compatibility with previous releases. If you're deploying a fresh installation of PostgreSQL v15, run this command: ``GRANT CREATE ON SCHEMA public TO PUBLIC`` to ensure that you can use Mattermost.
77

8-
PostgresSQL full-text search fails to use indexes with non-english ``default_text_search_config``
8+
PostgreSQL full-text search fails to use indexes with non-English ``default_text_search_config``
99
--------------------------------------------------------------------------------------------------
1010

11-
Mattermost uses ``default_text_search_config`` for full-text search in PostgresSQL databases, as opposed to a hardcoded text search config. However, indexes are still created with a hardcoded text search config (english) and as a result, full-text search may never use the indexes.
11+
Mattermost uses ``default_text_search_config`` for full-text search in PostgreSQL databases, as opposed to a hardcoded text search config. However, indexes are still created with a hardcoded text search config (english) and as a result, full-text search may never use the indexes.
1212

1313
Some of the tables in Mattermost, like ``Posts`` or ``Users``, contain GIN indexes to improve the database full-text search feature in PostgreSQL.
1414

0 commit comments

Comments
 (0)