>> Maybe it will be a good idea to make a dumper with some dumping levels:
>> - all cluster
>> - global objects
>> - database level
>
> I'm not sure I understand. Is there some utility in dividing this
> into these particular levels?
-all cluster -- it's what pg_dumpall and pg_dump do.
- global objects -- it's dumping tablespaces, roles, database(structure).
- database level -- it's dumping all inside one database.
--
Best regards, Dmitry Voronin