Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
F.6. basic_archive
Prev UpAppendix F. Additional Supplied ModulesHome Next

F.6. basic_archive

basic_archive is an example of an archive module. This module copies completed WAL segment files to the specified directory. This may not be especially useful, but it can serve as a starting point for developing your own archive module. For more information about archive modules, seeChapter 51.

In order to function, this module must be loaded viaarchive_library, andarchive_mode must be enabled.

F.6.1. Configuration Parameters

basic_archive.archive_directory (string)

The directory where the server should copy WAL segment files. This directory must already exist. The default is an empty string, which effectively halts WAL archiving, but ifarchive_mode is enabled, the server will accumulate WAL segment files in the expectation that a value will soon be provided.

These parameters must be set inpostgresql.conf. Typical usage might be:

# postgresql.confarchive_mode = 'on'archive_library = 'basic_archive'basic_archive.archive_directory = '/path/to/archive/directory'

F.6.2. Notes

Server crashes may leave temporary files with the prefixarchtemp in the archive directory. It is recommended to delete such files before restarting the server after a crash. It is safe to remove such files while the server is running as long as they are unrelated to any archiving still in progress, but users should use extra caution when doing so.

F.6.3. Author

Nathan Bossart


Prev Up Next
F.5. basebackup_to_shell Home F.7. bloom
pdfepub
Go to PostgreSQL 15
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp