I am not sure if this is correct fix, but it fixed this issue
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c index 21b00792a8a..16da4decbd0 100644 --- a/src/bin/pg_dump/pg_backup_directory.c +++ b/src/bin/pg_dump/pg_backup_directory.c @@ -415,7 +415,15 @@ _LoadLOs(ArchiveHandle *AH, TocEntry *te) * now there can be multiple. We don't need to worry what version we are * reading though, because tctx->filename should be correct either way. */ - setFilePath(AH, tocfname, tctx->filename); + + /* + * probably there is a bug in older releases (tested in Postgres 11). + * The filename is not correct - instead "blobs.toc" it is NNNN.dat.