joncrlsn/pgdiff

Support for non-standard TCP ports not working

masonevans opened this issue · 2 comments

It looks like it's creating the DbInfo object properly but it ignores the configured port when connecting

$ ./pgdiff FUNCTION --user1=db_user --user2=db_user --host1=localhost --host2=localhost --port1=5458 --port2=5450 --dbname1=db --dbname2=db
-- schemaType: FUNCTION
-- db1: {db localhost 5458 db_user  }
-- db2: {db localhost 5450 db_user  }
-- Run the following SQL against db2:
2016/03/01 11:48:30 Error running querydial tcp [::1]:5432: getsockopt: connection refused

Thank you Mason, I'll look into this tonight.

Thank you much, Mason. I incorporated your diffs and I also fixed another bug that kept it from using the port given to it. It's at version 0.9.2 now.