postgrespro / pg_probackup

Backup and recovery manager for PostgreSQL
https://postgrespro.github.io/pg_probackup/
Other
703 stars 86 forks source link

log into postgres log when json enabled #618

Open shab2 opened 7 months ago

shab2 commented 7 months ago

Hi! /opt/pgpro/std-15/bin/pg_probackup archive-push -B /var/lib/postgresql/15/backup --instance NBS_DBA --wal-file-path=%p --wal-file-name=%f --overwrite --log-format-console=json --log-format-file=json' puts log into .log but postgesql logging into log with extention json How to put archive-push command log into json postgres log? Thanks

demonolock commented 5 months ago

Hi, archive-push doesn't support logging in json format. With parameters logging_collector = 'on' log_destination = 'jsonlog' it creates 2 files .json with Postgresql logs and .log. Archive-push command will continue write to file .log. Is it ok for you, or you need them in json format too? If yes, could you, please, describe the reason.