Is there any way to force PostgreSQL 9.3 backup / restore schema in the correct sequence of dependent objects?
Example
I need to create a function that is used in the materialized views before creating the materialized views itself.
I got an error in schema restoring, because the materialized view is created before creating function itself.
create function
parts manually after the resore itself. (pg_dump --schema only will give only the ddl, can be used to extract the function definitions, and/or materialised view definitions) – Freemanfreemartin