You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-16 07:14:15 +02:00
use PG_BINARY_A flag when opening file with map headers
This commit is contained in:
@ -2268,7 +2268,7 @@ write_page_headers(BackupPageHeader2 *headers, pgFile *file, HeaderMap *hdr_map,
|
|||||||
{
|
{
|
||||||
elog(LOG, "Creating page header map \"%s\"", map_path);
|
elog(LOG, "Creating page header map \"%s\"", map_path);
|
||||||
|
|
||||||
hdr_map->fp = fopen(map_path, "a");
|
hdr_map->fp = fopen(map_path, PG_BINARY_A);
|
||||||
if (hdr_map->fp == NULL)
|
if (hdr_map->fp == NULL)
|
||||||
elog(ERROR, "Cannot open header file \"%s\": %s",
|
elog(ERROR, "Cannot open header file \"%s\": %s",
|
||||||
map_path, strerror(errno));
|
map_path, strerror(errno));
|
||||||
|
Reference in New Issue
Block a user