schemas, ordering, complexity.
I've spent the last few days trying to come up with some kind of a cut down demo I can give to my organisation about how we might use this, maybe something with only one schema, something that excludes a lot of stuff with .pgschemaignore, something that doesn't try and utilize multi-file dumps, and I couldn't do it. There is quite a lot of complexity in our model, and you'll need some time to get it working. I think I'm going to have to back away from using this for a while to give you more time to develop it. I think you need the multi schema. I also think you need a way to automatically exclude things that depend on things in other schemas. Since the program presumably is forming some kind of dependency graph of what depends on what, this ought to be feasible at some point.
Anyway, my gift to you... or maybe my curse is I'm attaching here our entire database schema dump, with all our schemas. I would suggest this is a pretty good test case if you've got all the bases covered. If you can load this, dump it and plan it without intervention, I would love to dip my foot back in the water and get involved, otherwise I might have to back away from it for a while... good luck.
Thanks for the full dump, it turned out to be a very useful corpus. Status against 1.14.1:
- The dump loads, and every schema dumps and plans without intervention when the plan database can see the other schemas. With the default embedded plan database, the 6 schemas that reference objects in other schemas fail as documented; pointing
--plan-hostat a database that holds the other schemas (the target itself works) plans all of them clean. Foreign tables, servers and user mappings are still unsupported, so the 4 foreign-table schemas dump empty. - Round-tripping it (apply the dump to a fresh database, compare catalogs with pg_dump) found seven bugs, now filed: #696 (FOR ROLE default privileges drop table grants), #697 (
OPERATOR(public.->)false diff with--plan-hostonpublic), #698 (view/matview column comments), #699 (time/interval/bit type modifiers), #700 (trigger argument literals), #701 (public.nameparameter type), #702 (ROWS). #696 and #697 affect your schema directly; the others are latent in it.
One more thing: the attached file includes the CREATE USER MAPPING ... OPTIONS (password ...) lines for srv_nsl_local and the other servers. You may want to rotate those credentials.