Skip to content

Commit 2d982f3

Browse files
authored
Add replication to pg_hba and wal summarization (#8556)
This is required for local-incremental backups via pg_basebackup.
1 parent e628827 commit 2d982f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

edb/server/pgcluster.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,12 @@ async def ensure_initialized(self, **settings: Any) -> bool:
505505
user='postgres',
506506
auth_method='trust'
507507
)
508+
self.add_hba_entry(
509+
type='local',
510+
database='replication',
511+
user='postgres',
512+
auth_method='trust'
513+
)
508514
return True
509515
else:
510516
return False
@@ -571,6 +577,8 @@ async def start(
571577
]
572578
),
573579
"edb_stat_statements.track_planning": "true",
580+
# Required for pg_basebackup --incremental to work
581+
"summarize_wal": "on",
574582
}
575583

576584
if os.getenv('EDGEDB_DEBUG_PGSERVER'):

0 commit comments

Comments
 (0)