Skip to content

Commit 4a4af62

Browse files
committed
bugfix: for PG>=12 instance with missing postgresql.auto.conf restore now correctly recreates postgresql.auto.conf
1 parent c30628c commit 4a4af62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/restore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,7 @@ update_recovery_options(pgBackup *backup,
15431543
if (errno != ENOENT)
15441544
elog(ERROR, "cannot stat file \"%s\": %s", postgres_auto_path,
15451545
strerror(errno));
1546+
st.st_size = 0;
15461547
}
15471548

15481549
/* Kludge for 0-sized postgresql.auto.conf file. TODO: make something more intelligent */

0 commit comments

Comments
 (0)