Replibyte icon indicating copy to clipboard operation
Replibyte copied to clipboard

Cannot create a Replibyte dump from a PostgreSQL .dump or .sql file with --source_type postgresql --input --file

Open davidbruce opened this issue 3 years ago • 1 comments

I have attempted to work around https://github.com/Qovery/Replibyte/issues/208 by creating a manual dump file and then processing it with Replibyte. This unfortunately does not work and it just spins forever.

replibyte -c manual-local-config.yaml dump create --source_type postgresql --input --file manual-dumps/local_manual.dump

I stepped through the Replibyte code and found following code in dump.rs: 170 https://github.com/Qovery/Replibyte/blob/7458882e10a100373e837544aca3aa916d013fa1/replibyte/src/commands/dump.rs#L170-L181

Line 176 hangs forever when passing a .dump file or a .sql file. I assume this has something to do with the //FIXME 😅

davidbruce avatar Jul 29 '22 19:07 davidbruce

Hi @davidbruce, thanks for reporting your issue and digging into it. Do you know the SQL line that makes your dump reading fail?

evoxmusic avatar Aug 06 '22 20:08 evoxmusic