eulerto / pgquarrel

pgquarrel compares PostgreSQL database schemas (DDL)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pgquarrel segfaults when db connection is unavailable

devrimgunduz opened this issue · comments

pgquarrel segfaults when at least one db connection is unavailable (in this case, db instance on port 5411 is not running)

-bash-5.0$ pgquarrel --source-port=5412 --target-port=5411
Segmentation fault (core dumped)

I think it should throw an error saying that it cannot connect.

I couldn't reproduce. Could you provide a backtrace or pgquarrel -v -v --source-port=5412 --target-port=5411?

BTW, I fixed a similar bug (commit 552fe30). It wasn't included in pgquarrel 0.7.0, although it will be included in 0.8.0. Are you testing master?