1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-09-16 09:26:30 +02:00

bugfix: for PG>=12 instance with missing postgresql.auto.conf restore now correctly recreates postgresql.auto.conf

This commit is contained in:
Grigory Smolkin
2021-02-10 14:25:13 +03:00
parent c30628cd1d
commit 4a4af6270f

View File

@@ -1543,6 +1543,7 @@ update_recovery_options(pgBackup *backup,
if (errno != ENOENT)
elog(ERROR, "cannot stat file \"%s\": %s", postgres_auto_path,
strerror(errno));
st.st_size = 0;
}
/* Kludge for 0-sized postgresql.auto.conf file. TODO: make something more intelligent */