Postgresql tips

Start to postgresql :  sudo -u postgres psql postgres
List all databases : 
  • \list or \l: list all databases
  • \dt: list all tables in the current database
Type \q and then press ENTER to quit psql
Connect to database : \connect database_name
Drop all tables from a database:  drop schema public cascade;

Comments

Popular posts from this blog

Update WPF Interaction Triggers in from .Net Framework 4.8 to .Net 5

Instruct GIT not to track a specific file

[Code Snippet] Assert Exception in private methods using PrivateObject