PostgreSQL Tutorial
Welcome to PostgreSQL Tutorials by TutorialKart!
Get Started
Begin your journey with PostgreSQL through these beginner-friendly tutorials. Learn how to install PostgreSQL, use the GUI application pgAdmin, and work with the PostgreSQL Shell (psql).
Database
PostgreSQL databases are collections of schemas, tables, procedures, functions, sequences, and more. Explore the following tutorials to learn how to create, manage, and delete databases effectively.
- PostgreSQL – Create Database
- PostgreSQL – Select Database
- PostgreSQL – List Databases
- PostgreSQL – Delete or Drop Database
- PostgreSQL – Backup and Restore Databases
Table
Learn how to manage tables in PostgreSQL. A table stores data in rows and columns. These tutorials guide you on creating tables, altering their properties, and performing operations like inserting, updating, selecting, and deleting rows.
- PostgreSQL – CREATE TABLE
- PostgreSQL – INSERT INTO Table
- PostgreSQL – Insert Multiple Rows into Table
- PostgreSQL – Insert Row if Not Exists in Table
- PostgreSQL – Insert JSON into Table
- PostgreSQL – Insert into Select from Another Table
- PostgreSQL – SELECT FROM Table
- PostgreSQL – Select Top 10 Rows from Table
- PostgreSQL – Select Query with Where Clause
- PostgreSQL – Select Distinct on One Column
- PostgreSQL – Select Distinct on Multiple Columns
- PostgreSQL – Select Count
- PostgreSQL – UPDATE Table
- PostgreSQL – DELETE Rows from Table
- PostgreSQL – Add a Column to Table
- PostgreSQL – Delete a Column from Table
- PostgreSQL – Make a Column PRIMARY KEY
- PostgreSQL – Foreign Key Constraints
Clauses
- PostgreSQL – WHERE Clause
- PostgreSQL – LIMIT Clause
- PostgreSQL – ORDER BY Clause
- PostgreSQL – GROUP BY Clause
- PostgreSQL – HAVING Clause
More Tutorials on Creating Tables
- PostgreSQL – Create Table if Not Exists
- PostgreSQL – Create Table with Autoincrement id
- PostgreSQL – Create Table with Primary Key
- PostgreSQL – Create Table with Primary Key Autoincrement
- PostgreSQL – Create Table with Foreign Key
- PostgreSQL – Create Table with Multiple Foreign Key
- PostgreSQL – Create Table with Date Column
- PostgreSQL – Create Table with Default Timestamp
- PostgreSQL – Create Table with Index
- PostgreSQL – Create Table from Another Table
PostgreSQL – Working with JSON
- PostgreSQL – JSON Datatype
- PostgreSQL – JSONB Datatype
- PostgreSQL – JSON vs JSONB
- PostgreSQL – Select JSON column as Text
- PostgreSQL – JSON Functions
- PostgreSQL – JSON Array to Rows
Advanced Topics
- PostgreSQL – Views
- PostgreSQL – Triggers
- PostgreSQL – Stored Procedures
- PostgreSQL – Partitioning Tables
- PostgreSQL – JSON and JSONB Data Types
- PostgreSQL – Working with Arrays
- PostgreSQL – Full-Text Search
pgAdmin 4 Tutorials
Database Management
- How to create a database in pgAdmin 4
- How to delete a database in pgAdmin 4
- How to rename a database in pgAdmin 4
- How to connect to a database server in pgAdmin 4
- How to disconnect from a database server in pgAdmin 4
- How to back up a database in pgAdmin 4
- How to restore a database in pgAdmin 4
- How to view database properties in pgAdmin 4
- How to set database connection limits in pgAdmin 4
Table Management
- How to create a table in pgAdmin 4
- How to delete a table in pgAdmin 4
- How to rename a table in pgAdmin 4
- How to modify table structure in pgAdmin 4
- How to add new columns to a table in pgAdmin 4
- How to delete columns from a table in pgAdmin 4
- How to create constraints on a table in pgAdmin 4
- How to export a table in pgAdmin 4
- How to import data into a table in pgAdmin 4
- How to truncate a table in pgAdmin 4
- How to analyze table dependencies in pgAdmin 4
Querying and Scripts
- How to write SQL queries in the query tool in pgAdmin 4
- How to execute a query in pgAdmin 4
- How to save SQL queries in pgAdmin 4
- How to format SQL queries in pgAdmin 4
- How to debug a query in pgAdmin 4
- How to use the Query History in pgAdmin 4
Schema Management
- How to create a schema in pgAdmin 4
- How to delete a schema in pgAdmin 4
- How to rename a schema in pgAdmin 4
- How to manage schema privileges in pgAdmin 4
User and Role Management
- How to create a user in pgAdmin 4
- How to delete a user in pgAdmin 4
- How to modify user roles in pgAdmin 4
- How to assign privileges to a user in pgAdmin 4
- How to revoke privileges from a user in pgAdmin 4
Index Management
- How to create an index in pgAdmin 4
- How to delete an index in pgAdmin 4
- How to view index properties in pgAdmin 4
- How to rebuild an index in pgAdmin 4
View and Function Management
- How to create a view in pgAdmin 4
- How to delete a view in pgAdmin 4
- How to modify a view in pgAdmin 4
- How to create a function in pgAdmin 4
- How to delete a function in pgAdmin 4
- How to debug a function in pgAdmin 4
Trigger Management
- How to create a trigger in pgAdmin 4
- How to delete a trigger in pgAdmin 4
- How to enable or disable triggers in pgAdmin 4
- How to view trigger properties in pgAdmin 4
Backup and Restore
- How to back up a database in pgAdmin 4
- How to restore a database in pgAdmin 4
- How to schedule backups in pgAdmin 4
- How to use pg_dump with pgAdmin 4
Maintenance and Monitoring
- How to analyze a database in pgAdmin 4
- How to vacuum a database in pgAdmin 4
- How to reindex a database in pgAdmin 4
- How to monitor database activity in pgAdmin 4
- How to view server logs in pgAdmin 4
- How to manage replication in pgAdmin 4
Import/Export
- How to import data from a CSV file in pgAdmin 4
- How to export data to a CSV file in pgAdmin 4
- How to export a database schema in pgAdmin 4
- How to export a table to JSON in pgAdmin 4
Miscellaneous Actions
- How to use dashboards in pgAdmin 4
- How to customize the pgAdmin 4 interface
- How to configure notifications in pgAdmin 4
- How to create a server group in pgAdmin 4
- How to configure a server connection in pgAdmin 4
- How to reset the master password in pgAdmin 4
- How to use the built-in debugger in pgAdmin 4
- How to enable auto-refresh in pgAdmin 4
- How to compare schemas in pgAdmin 4
- How to generate ER diagrams in pgAdmin 4