Ubuntu Install PostgreSQL - HolmesJJ/CS2102-Database-Systems GitHub Wiki
查看PostgreSQL版本
psql --version
安装扩展组件
sudo apt install postgresql postgresql-contrib
开机自启
systemctl enable --now postgresql
启动PostgreSQL
systemctl start postgresql
查看PostgreSQL状态
systemctl status postgresql