Open ghost opened 5 years ago
Hello, i created dump pg_dump -h 192.168.0.11 -p 5432 --username postgres --no-password -d some -b -F c --file=my.dmp --no-owner --schema-only Dump file size is 5Mb I startup my integration test with next:
pg_dump -h 192.168.0.11 -p 5432 --username postgres --no-password -d some -b -F c --file=my.dmp --no-owner --schema-only
EmbeddedPostgres postgres = new EmbeddedPostgres(Version.Main.V9_6) postgres.start() url = postgres.start("localhost", 5432, "dbName", "userName", "password") postgres.getProcess().get().restoreFromFile(new File("src/itest/resources/my.dmp"))
and restoreFromFile executed more 1 hour, after that, i kill process. Help me, how i can fix it?
The problem in dump format, i use "custom"(-F c). If i use plain (-F p) - all ok(with "importFromFileWithArgs"). What happen with custom format?
Hello, i created dump
pg_dump -h 192.168.0.11 -p 5432 --username postgres --no-password -d some -b -F c --file=my.dmp --no-owner --schema-only
Dump file size is 5Mb I startup my integration test with next:and restoreFromFile executed more 1 hour, after that, i kill process. Help me, how i can fix it?