sudo apt update
sudo apt install postgresql postgresql-contrib
sudo service postgresql start [stop, status, reload, restart]
sudo -u postgres psql -c "SELECT version();"
sudo -u postgres psql
pass= root
ALTER USER postgres WITH PASSWORD 'root';
\q
: Quit\c
database: Connect to a database\d
table: Show table definition including triggers\dt
.: List tables from all schemas (if . is omitted will only show SEARCH_PATH ones)\l
: List databases\dn
: List schemas\df
: List functions\dv
: List views\timing
: Show query timing stats
this project was built in: .NET
, PostgreSQL
Test-API-Csharp
is open source and therefore free to download and use without permission.