Lack of option to specify port
Closed this issue · 4 comments
kristenkam commented
Defaults to port 5432.
Have script default to port 5432 if a port is not specified at commandline.
Kristen
pnorman commented
Can this be done with the PGPORT env var?
kristenkam commented
Hi.
Yeah, the psycopg module's psycopg2 class has a connect method keyword to specify the port number. You can update the logic to parse the port number from command line if its specified.
kristenkam commented
done. wanna check it out?