DbSchema Database Designer

DbSchema | 10+ Essential PostgreSQL Commands



The table below contains the essential commands for PostgreSQL. These commands will help you easily manage your PostgreSQL databases.


FunctionCommand SyntaxComments
Connect to a database under a specific userpsql -d database -U user -WReplace database and user
Connect to a database on another hotspsql -h host -d database -U user -WReplace the host, database and user
Switch connection\c dbname usernameReplace with the name of the database & the username. If the username is left empty, it will automatically connect with current user
List available databases\l
List available schemas\dn
List available tables\dtTo list tables from all schemas, add *.*. To list from a specific schema, add schema_name.*(ex. \dt information_schema.*
Describe a table\d table_name
List available views\dv
List indexes\di
List data types\dT+
List users\duThis command will also list the roles of the users
Access command history\sTo save the command history to a file, specify the filename after the command
Get help on commands\?This will show a list with all the commands available in PostgreSQL.
Get help on a specific statement\h statementThis will show you details about a specific PostgreSQL statement. (ex. \h CREATE TABLE)
Quit\q
DbSchema Database Designer
Visual Design & Schema Diagram

➤ Create and manage your database schema visually through a user-friendly graphical interface.

➤ Easily arrange tables, columns, and foreign keys to simplify complex database structures, ensuring clarity and accessibility.

GIT & Collaboration
Version Control & Collaboration

➤ Manage schema changes through version control with built-in Git integration, ensuring every update is tracked and backed up.

➤ Collaborate efficiently with your team to maintain data integrity and streamline your workflow for accurate, consistent results.

Data Explorer & Query Builder
Relational Data & Query Builder

➤ Seamlessly navigate and visually explore your database, inspecting tables and their relationships.

➤ Build complex SQL queries using an intuitive drag-and-drop interface, providing instant results for quick, actionable insights.

Interactive Documentation & Reporting
HTML5 Documentation & Reporting

➤ Generate HTML5 documentation that provides an interactive view of your database schema.

➤ Include comments for columns, use tags for better organization, and create visually reports.