psql snippet#

psql#

  • \df *.* Lists all relations

  • \l Lists all database

command#

  • DROP TABLE table_name CASCADE; used when you want to remove all object depend on them.