PostgreSQL Administration
Manage PostgreSQL users, privileges, passwords, backups, restores, psql commands, and query plans.
This chapter introduces the knowledge related to managing databases in PostgreSQL, including user permissions, reseting passwords, database backup and restore, psql commands and explain.
-
PostgreSQL psql Commands
This article introduces the commonly used commands in the psql tool provided by PostgreSQL. -
PostgreSQL Show Databases
This article describes two methods for listing databases in PostgreSQL. -
PostgreSQL Objects Size
This article describes how to view the size of databases, tables, indexes, and tablespaces in PostgreSQL. -
PostgreSQL Copy Databases
This article describes several ways to copy databases in PostgreSQL. -
PostgreSQL Show Tables
List PostgreSQL tables from psql or SQL, include all schemas, query pg_catalog.pg_tables, and troubleshoot missing tables. -
PostgreSQL Describe Tables
This article describes two ways to view the definition or structure of a table in PostgreSQL. -
PostgreSQL Copy Tables
This article describes several ways to copy tables in PostgreSQL -
PostgreSQL Export and Import
This article describes how to back up a PostgreSQL database usingpg_dumpandpg_dumpalland how to restore PostgreSQL database usingpg_restore. -
PostgreSQL EXPLAIN
This article describes the usage of the EXPLAIN statement in PostgreSQL. -
Reset Password
Reset a PostgreSQL role password safely with psql, including local peer-authenticated access and managed database recovery paths.