Files
postgres15primary/README.md
Bernhard Radermacher 6e598e489b wip
2025-10-23 12:08:22 +00:00

43 lines
1.2 KiB
Markdown

# postgres15primary
Image for Primary Node
POSTGRES_INITDB_WALDIR
POSTGRES_PASSWORD
REPLICATOR_PASSWORD
restore_command = 'cp /nas/pikube/sand/postgres_wal/%f %p' # command to use to restore an archived logfile segment
# placeholders: %p = path of file to restore
# %f = file name only
# e.g. 'cp /mnt/server/archivedir/%f %p'
archive_mode = on # enables archiving; off, on, or always
# (change requires restart)
#archive_library = '' # library to use to archive a logfile segment
# (empty string indicates archive_command should
# be used)
archive_command = 'test ! -f /nas/pikube/sand/postgres_wal/%f && cp %p /nas/pikube/sand/postgres_wal/%f' # command to use to archive a logfile segment
# placeholders: %p = path of file to archive
# %f = file name only
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
#archive_timeout = 0 # force a logfile segment switch after this
# number of seconds; 0 disables
#checkpoint_warning = 30s # 0 disables
max_wal_size = 1GB
min_wal_size = 80MB
wal_log_hints = off # also do full page writes of non-critical updates
# (change requires restart)
wal_level = replica # minimal, replica, or logical