remove_tablespace_statements

Function remove_tablespace_statements 

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

Comments out tablespace-related statements in a globals dump file.

Some managed PostgreSQL targets (e.g., SerenDB) do not support custom tablespaces. This function filters out:

  • CREATE TABLESPACE statements
  • Any statement referencing RDS-specific tablespaces (any rds_* tablespace)