flightaware / Pgtcl

Tcl client side interface to PostgreSQL (libpgtcl)
https://flightaware.github.io/Pgtcl/
BSD 3-Clause "New" or "Revised" License
31 stars 10 forks source link

Missing -hostaddr parameter #14

Closed mad-ops closed 7 years ago

mad-ops commented 7 years ago

-hostaddr exists in the documentation as part of pg_connect: http://flightaware.github.io/Pgtcl/html/pgtcl-pgconnect.html

However the following occurs:


% package require Pgtcl
2.1.0
% pg_connect -hostaddr dummy
bad option "-hostaddr": must be -host, -port, -tty, -options, -user, -password, -conninfo, -connlist, -connhandle, or -async
% 
resuna commented 7 years ago

I suspect you're mixing up new-style and old-style connection parameters. The "hostaddr" option (without the dash) is only in the new-style connection list format, not the old style dash options.

bovine commented 7 years ago

Closing, since this is working as documented.