Hi Postgres has a perfect tool - psql what libraries did you (developers) use to develop psql console and particulary command-line editor. thnx
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных