Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

"restoreFromFile" executes more hour #150

Open
ghost opened this issue Dec 3, 2018 · 1 comment
Open

"restoreFromFile" executes more hour #150

ghost opened this issue Dec 3, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 3, 2018

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
Copy link
Author

ghost commented Dec 3, 2018

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants