From f83dfe38c2c15d1bcbb16afe74bcbbbfad36c09d Mon Sep 17 00:00:00 2001 From: Richard Moorhead Date: Tue, 10 Dec 2024 09:01:46 -0600 Subject: [PATCH] GEOMESA-3423 - add docs --- docs/user/postgis/index_config.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/user/postgis/index_config.rst b/docs/user/postgis/index_config.rst index 4fe6de747512..a862b0dfa446 100644 --- a/docs/user/postgis/index_config.rst +++ b/docs/user/postgis/index_config.rst @@ -156,3 +156,14 @@ for each query, moving data out of it faster may improve performance. After the schema has been created, changes to the schedule can be made through the :ref:`postgis_cli_update_schema` command. + +Configuring WAL logging +----------------------- + +PostgreSQL uses a write-ahead log (WAL) to ensure data consistency and durability. By default, the WAL is written +for all changes to the database, including the partitioned tables. Disabling the WAL for the partitioned tables +can significantly improve write performance, but at the cost of data durability. If increased performance is desired, +the WAL can be disabled for the partitioned tables by setting the key ``pg.wal.log.enabled`` to ``false``. + +See the `PostgreSQL documentation`_ for more information on the implications of disabling the WAL. +.. _PostgreSQL documentation: https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED \ No newline at end of file