Various fixups:

- Use u32 for correct parameter formatting in pageserver mgmt API
  client
- Use a correctly formatted PgVersionId (not: PgMajorVersion) in
  test_branching.py
- Add some documentation on postgres_versioninfo::PgVersionId
This commit is contained in:
Matthias van de Meent
2025-06-24 11:33:45 +02:00
parent 4b7de9135d
commit eace983d73
4 changed files with 4 additions and 2 deletions

View File

@@ -749,6 +749,8 @@ impl Client {
pg_version: PgMajorVersion,
basebackup_tarball: ReqwestBody,
) -> Result<()> {
let pg_version = pg_version.major_version_num();
let uri = format!(
"{}/v1/tenant/{tenant_id}/timeline/{timeline_id}/import_basebackup?base_lsn={base_lsn}&end_lsn={end_lsn}&pg_version={pg_version}",
self.mgmt_api_endpoint,