Skip to content

Commit

Permalink
Add On-demand WAL Download to logicalfuncs
Browse files Browse the repository at this point in the history
  • Loading branch information
save-buffer committed Jun 4, 2024
1 parent fd22fc5 commit 3daf643
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions pgxn/neon/neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ LogicalSlotsMonitorMain(Datum main_arg)
void
_PG_init(void)
{
extern void (*LogicalFuncs_Custom_XLogReaderRoutines)(XLogReaderRoutine *xlr);
/*
* Also load 'neon_rmgr'. This makes it unnecessary to list both 'neon'
* and 'neon_rmgr' in shared_preload_libraries.
Expand All @@ -280,6 +281,7 @@ _PG_init(void)
pg_init_libpagestore();
pg_init_walproposer();
WalSender_Custom_XLogReaderRoutines = NeonOnDemandXLogReaderRoutines;
LogicalFuncs_Custom_XLogReaderRoutines = NeonOnDemandXLogReaderRoutines;

InitLogicalReplicationMonitor();

Expand Down
2 changes: 1 addition & 1 deletion vendor/postgres-v14
2 changes: 1 addition & 1 deletion vendor/postgres-v15
2 changes: 1 addition & 1 deletion vendor/postgres-v16
6 changes: 3 additions & 3 deletions vendor/revisions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"v16": ["16.3", "b228f20372ebcabfd7946647cb7adbd38bacb14a"],
"v15": ["15.7", "c2c3d40534db97d83dd7e185d1971e707fa2f445"],
"v14": ["14.12", "17e0f5ff4e1905691aa40e1e08f9b79b14c99652"]
"v16": ["16.3", "fdb16f95ecddac9740e5626ef0559cdba3728e97"],
"v15": ["15.7", "d3be106cb320fbbcf2056929460497b005d33969"],
"v14": ["14.12", "0205c6ec44870dd1a33ca96828c61fd7ad61c47f"]
}

0 comments on commit 3daf643

Please sign in to comment.