I took another look at this today, and propose to push the attached. The
pg_dump fix goes all the way back to 9.6 whereas the pg_basebackup fix is from
11 and onwards. The adjacent shadowed variable bug in pg_dump is also present
since 9.6.
Thoughts?
--
Daniel Gustafsson https://vmware.com/