psql becomes an essential tool for you to connect to RisingWave, issue SQL queries, and manage database objects.
To install psql without the rest of the PostgreSQL package, you can use your operating system’s package manager. Here are the steps to install psql on some common operating systems:
- macOS
- Debian/Ubuntu
- Red Hat/CentOS
- Fedora
- Windows
- Install Homebrew if you don’t have it on your mac.
- Update package definitions (formulae).
- Install libpq.
Homebrew’s package for the PostgreSQL client tools islibpq, which includespsql,pg_dump, and other client utilities.
- Link all binaries of
libpqto/usr/local/bin.
libpqdoes not install itself in the/usr/local/bindirectory. Thus, you need to link them to the directory to use the installed binaries.