The psql
command line tool is widely used for interacting with a PostgreSQL or
Timescale instance, and it is available for all operating systems. Most of
the instructions in the Timescale documentation assume you are using psql
.
Before you start, check that you don't already have psql
installed. It is
sometimes installed by default, depending on your operating system and other
packages you have installed over time:
The psql
tool is installed by default on macOS systems when you install
PostgreSQL, and this is the most effective way to install the tool.
On macOS you can use Homebrew or MacPorts to install the PostgreSQL package
or just the psql
tool.
If you do not want to install the entire PostgreSQL package, you can install the psql
tool on its own. libpqxx
is the official C++ client API for PostgreSQL.
You can use the apt
package manager on Debian and Ubuntu systems to install
the psql
tool.
Make sure your
apt
repository is up to date:sudo apt-get updateInstall the
postgresql-client
package:sudo apt-get install postgresql-client
The psql
tool is installed by default on Windows systems when you install
PostgreSQL, and this is the most effective way to install the tool. These
instructions use the interactive installer provided by PostgreSQL and
EnterpriseDB.
- Download and run the PostgreSQL installer from www.enterprisedb.com.
- In the
Select Components
dialog, checkCommand Line Tools
, along with any other components you want to install, and clickNext
. - Complete the installation wizard to install the package.
Keywords
Found an issue on this page?Report an issue or Edit this page in GitHub.