How do I install just the client tools for PostgreSQL on Windows?

后端 未结 6 471
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-08 02:16

I have a PostgreSQL database on a Linux system that I want to access from my Windows PC. But the only Windows binaries I have been able to find are the full installer, which

6条回答
  •  长情又很酷
    2020-12-08 02:41

    Thanks to everyone who has posted on this thread.

    For what it's worth, I got psql.exe from PostgreSQL 10.10 working under Windows 10 with just the following files from the zip archive:

    libcrypto-1_1-x64.dll
    libiconv-2.dll
    libintl-8.dll
    libpq.dll libssl-1_1-x64.dll
    psql.exe

    When connecting to AWS Redshift, I got the following error:

    psql: FATAL: invalid value for parameter "client_encoding": "WIN1252"

    I resolved this by running

    set PGCLIENTENCODING=UTF8
    

    I found this solution at https://forums.aws.amazon.com/thread.jspa?messageID=600088

    HTH.

提交回复
热议问题