mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
Extract WalProposer into the neon extension (#2217)
Including, but not limited to: * Fixes to neon management code to support walproposer-as-an-extension * Fix issue in expected output of pg settings serialization. * Show the logs of a failed --sync-safekeepers process in CI * Add compat layer for renamed GUCs in postgres.conf * Update vendor/postgres to the latest origin/main
This commit is contained in:
@@ -569,7 +569,7 @@ class ProposerPostgres(PgProtocol):
|
||||
f"neon.timeline_id = '{self.timeline_id.hex}'\n",
|
||||
f"neon.tenant_id = '{self.tenant_id.hex}'\n",
|
||||
f"neon.pageserver_connstring = ''\n",
|
||||
f"safekeepers = '{safekeepers}'\n",
|
||||
f"neon.safekeepers = '{safekeepers}'\n",
|
||||
f"listen_addresses = '{self.listen_addr}'\n",
|
||||
f"port = '{self.port}'\n",
|
||||
]
|
||||
|
||||
@@ -1855,11 +1855,11 @@ class Postgres(PgProtocol):
|
||||
# walproposer uses different application_name
|
||||
if ("synchronous_standby_names" in cfg_line or
|
||||
# don't repeat safekeepers/wal_acceptors multiple times
|
||||
"safekeepers" in cfg_line):
|
||||
"neon.safekeepers" in cfg_line):
|
||||
continue
|
||||
f.write(cfg_line)
|
||||
f.write("synchronous_standby_names = 'walproposer'\n")
|
||||
f.write("safekeepers = '{}'\n".format(safekeepers))
|
||||
f.write("neon.safekeepers = '{}'\n".format(safekeepers))
|
||||
return self
|
||||
|
||||
def config(self, lines: List[str]) -> 'Postgres':
|
||||
|
||||
Reference in New Issue
Block a user