yandex-qatools / postgresql-embedded

Embedded PostgreSQL Server
Other
493 stars 90 forks source link

"restoreFromFile" executes more hour #150

Open ghost opened 5 years ago

ghost commented 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:

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?

ghost commented 5 years ago

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?