Closed plicease closed 10 years ago
That sounds like a good improvement to diagnose problems with a dump + restore. Just keeping all the temporary files around based on a command line option or environment variable would be fine too. ($File::Temp::KEEP_ALL = 1 if $ENV{MBD_KEEP_ALL_TEMP_FILES...?)
During
./Build dbfakeinstall
when there is an error reloading the production schema into the temp database I get a helpful message:but the schema is stored in a temporary file, so it is hard to tell where the actual problem is. I could probably dump the schema is pg_dump, but I think it would be a nice improvement to:
That way if there is a failure on that step I can immediately open the dump to the appropriate line and if there isn't the schema sql isn't cluttering up the dist root.
The schema dump would also be added to MB cleanup so
./Build clean
would remove it as well.I can do the work, but wanted to document the issue here in case you had any concerns or alternative suggestions.