Set Up a PostgreSQL Database on Windows
- Download and install a PostgreSQL server. ...
- Add the PostgreSQL bin directory path to the PATH environmental variable. ...
- Open the psql command-line tool: ...
- Run a CREATE DATABASE command to create a new database. ...
- Connect to the new database using the command: \c databaseName.
What is psql and how is it used?
PostgreSQL is an advanced, enterprise class open source relational database that supports both SQL (relational) and JSON (non-relational) querying. ... PostgreSQL is used as the primary data store or data warehouse for many web, mobile, geospatial, and analytics applications.
What is the use of psql command?
psql is a terminal-based front-end to PostgreSQL. It enables you to type in queries interactively, issue them to PostgreSQL, and see the query results. Alternatively, input can be from a file or from command line arguments.