Function pgdump_toc_rewrite::rewrite_toc
source · 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 topg_dump
TOC filedbname
- New name for logical database.