просто закрыть и открыть? если да, то не помогло, или тут что-то другое имеется ввиду
> My setup had actually worked at first. I installed postgres and then set up the system PATH variables with C:\Program Files\PostgreSQL\9.6\bin; C:\Program Files\PostgreSQL\9.6\lib. The psql keyword in the command line gave no errors.
Предлогают добавить в PATH еще и путь с lib`вместо `bin