pg_probackup icon indicating copy to clipboard operation
pg_probackup copied to clipboard

log into postgres log when json enabled

Open shab2 opened this issue 1 year ago • 1 comments

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 <postgres_name_log>.log but postgesql logging into log with extention json How to put archive-push command log into json postgres log? Thanks

shab2 avatar Jan 26 '24 16:01 shab2

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.

demonolock avatar Mar 23 '24 18:03 demonolock