A
A
Aborigen10202020-01-28 16:52:35
PostgreSQL
Aborigen1020, 2020-01-28 16:52:35

How to change the path to the postgresql log on a running replica?

Hello!

I'm testing for myself the possibility of replication on postgresql.
Created a replica, everything is replicated. But it doesn't have postgresql.conf, only postgresql.auto.conf, which you don't want to change manually. But I wanted to change the target file for outputting a log file, but not pg_log/postgresql-%a.logHow to do it?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-01-28
@Aborigin1020

Created a replica, everything is replicated. But she doesn't have postgresql.conf

She has everything. Without the config_file, postgresql won't start at all with a "could not access the server configuration file" error.
Look for where you lost.
show config_file;
on a running base.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question