pub fn rewrite_toc<P: AsRef<Path>>(
    toc_path: P,
    dbname: &str
) -> Result<(), TocError>
Expand description

Rewrites pg_dump TOC and catalogs contents with the specified DB name.

TOC file toc.dat is created by pg_dump when it is run with directory format (-Z d flag).

§Arguments

  • toc_path - Path to pg_dump TOC file
  • dbname - New name for logical database.