PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.
pgtclsh [ dbname ]
The name of an existing database to access.
pgtclsh provides a TCL shell interface for Postgres.
Another way of accessing Postgres through tcl is to use pgtksh or pgaccess.
Read the upstream documentation. For corrections, first check the current manual.