Getting Started
Starting Database with Docker
docker run --name <docker_name>
-e POSTGRES_PASSWORD=<password>
-d -p 5432:5432 postgres:13.3
docker exec -it <docker_name> bash
psql -U postgresInstalling PostgreSQL on windows
https://www.postgresql.org/download/windows/
Installing PostgreSQL on MacOS
https://www.postgresql.org/download/macosx/
Setup and Basics : using apt
Installation
sudo apt-get install postgresqlUsage commands
Switch to default user
Getting Started
Connect to a database
Here port : 5432 is default and can be get from
psql --helppostgresis the super user. Create another user and connect using that.to connect to database with user :
Commands
Load Data
Download the sample data file from here

Last updated
Was this helpful?