From 293913568e6a7a86fd1479e1cff8e2ecb58d6568 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 15:44:03 +0200 Subject: Adding upstream version 16.2. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/archive-modules.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/src/sgml/html/archive-modules.html (limited to 'doc/src/sgml/html/archive-modules.html') diff --git a/doc/src/sgml/html/archive-modules.html b/doc/src/sgml/html/archive-modules.html new file mode 100644 index 0000000..e3f4a82 --- /dev/null +++ b/doc/src/sgml/html/archive-modules.html @@ -0,0 +1,24 @@ + +Chapter 51. Archive Modules

Chapter 51. Archive Modules

+ PostgreSQL provides infrastructure to create custom modules for continuous + archiving (see Section 26.3). While archiving via + a shell command (i.e., archive_command) is much + simpler, a custom archive module will often be considerably more robust and + performant. +

+ When a custom archive_library is configured, PostgreSQL + will submit completed WAL files to the module, and the server will avoid + recycling or removing these WAL files until the module indicates that the files + were successfully archived. It is ultimately up to the module to decide what + to do with each WAL file, but many recommendations are listed at + Section 26.3.1. +

+ Archiving modules must at least consist of an initialization function (see + Section 51.1) and the required callbacks (see + Section 51.2). However, archive modules are + also permitted to do much more (e.g., declare GUCs and register background + workers). +

+ The contrib/basic_archive module contains a working + example, which demonstrates some useful techniques. +

\ No newline at end of file -- cgit v1.2.3