remove_tablespace_statements

Function remove_tablespace_statements 

Source
pub fn remove_tablespace_statements(path: &str) -> Result<()>
Expand description

Comments out CREATE TABLESPACE statements in a globals dump file.

Some managed PostgreSQL targets (e.g., SerenDB) do not support custom tablespaces. When replicating from a source that has tablespaces defined, this function comments out those statements to allow the globals restore to proceed.