

Make sure to change below parameters highlighted in red for your cluster endpoint, userid, copy script file name and log script file name respectively Make sure to add this to your PATH environment variable
#Centos pgcli install
Select command line tools as shown in below screenshot and install thatĪbove will install postgres12 command line in below folder C:\Program Files\PostgreSQL\12\bin. Run the installer which will take few minutes and prompt you for installations options Personally I find unzip to be the best "installer" anyway (I also use that to install the Postgres server, the Windows installer just has too many quirks)īelow are the steps I followed to connect to Amazon Redshift with postgres12 psql on windows:ĭownload postgres 12.4 from below location:
#Centos pgcli zip
It is obviously not a real installer, but if you put the cleaned up directory into a ZIP file, you can distribute that and whoever needs it just unzips the archive.
#Centos pgcli download
Of course you can also take all that from an existing Postgres installation without the need to download the ZIP archive. iconv.dll (libiconv-2.dll in newer Postgres versions).So that leaves you with these files (from the bin directory) that are required for the psql client: But you can overcome that as well by simply putting the MSVCR120.DLL from some computer where it is installed into the bin directory.

One drawback of this approach is that this requires the Visual C++ Redistributable to be installed. If you do want some of the other client tools, you might want to keep

The libxml2.dll and libxslt.dll are also only needed for the server. You can also remove all wx*.dll files, they are only needed for pgAdmin. Inside the bin directory you can essentially remove all. Maybe run: yum groups mark convert (see man yum) Loading mirror speeds from cached hostfile base: epel: extras: updates: Available Environment Groups: Minimal Install (minimal) Compute Node (compute-node-environment) Infrastructure. I think the share directory could be needed for localized error messages in psql but I'm not sure about that. Loaded plugins: fastestmirror There is no installed groups file. As far as I can tell (but I am not sure) the client also doesn't need the share or lib directories, but you would need to test that. You can remove the doc, include, pgAdmin III, StackBuilder and symbols directories. When you unzip it, you get the following directories:
#Centos pgcli archive
What you can do, is to download the ZIP archive of the complete Postgres binaries:Īnd then remove the "server" part from it.
