install postgresql on debian 10 code example
Example 1: install postgresql 12 on debian 10
sudo apt update
sudo apt -y install postgresql-12 postgresql-client-12
Example 2: postgres setup Linux Debian
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql-12