PostgreSQL Tutorial

  • Home
  • Stored Procedures
  • Triggers
  • Views
  • Interfaces
    • PostgreSQL PHP
    • PostgreSQL Python
    • PostgreSQL JDBC
  • Functions
    • Aggregate Functions
    • Date / Time Functions
    • String Functions
    • Math Functions
Home / PostgreSQL Administration

PostgreSQL Administration

PostgreSQL AdministrationThe PostgreSQL administration covers the most important PostgreSQL database server administration activities. We will discuss roles and groups administration, databases creation, tablespaces management, databases backup and restore.

PostgreSQL database and schema management

In this section, we will show you how to manage databases in PostgreSQL including creating databases, modifying existing database’s features and deleting databases. In addition, the schema management is covered.

  • Create a new database – create a new database using CREATE DATABASE statement.
  • Modify an existing database – modify the features of an existing database using the ALTER DATABASE statement.
  • Drop a database – removes a database permanently using  DROP DATABASE statement.
  • Copy a PostgreSQL database – copy a database within a database server or from a server to another.
  • Get database object sizes – introduces you various handy function to get the size of a database, a table, indexes, etc.

PostgreSQL roles administration

In PostgreSQL, a role is an account. A role that has login right is called a user. A role may be a member of other roles. A role that contains other roles is known as a group. In this section, you will learn how to manage roles and groups effectively.

  • PostgreSQL Roles Management: introduces you to PostgreSQL roles concept and shows you how to create user roles and group roles by using PostgreSQL  CREATE ROLE statement.

PostgreSQL Backup and restore Databases

This section shows you how to use various PostgreSQL backup and restore tools including pg_dump, pg_dumpall, psql,  pg_restore and  pgAdmin to backup and restore databases.

  • PostgreSQL Backup – introduces you to practical ways to backup your databases by using PostgreSQL backup tool including pg_dump and pg_dumpall.
  • PostgreSQL Restore –  shows you various ways to restore PostgreSQL databases by using psql and pg_restore tools.

Tablespace management

PostgreSQL tablespaces allow you to control how data stored in the file system. The tablespaces are very useful in many cases such as managing large tables and improving database performance. In this section, we will show you how to manage tablespaces in PostgreSQL effectively.

  • PostgreSQL Creating Tablespace – introduces you to PostgreSQL tablespace and shows you how to create tablespaces by using CREATE TABLESPACE statement.
  • PostgreSQL Changing Tablespace – shows you how to rename, change owner and set parameter for a tablespace by using ALTER TABLESPACE statement.
  • PostgreSQL Deleting Tablespaces – learns how to delete tablespaces by using DROP TABLESPACE statement.

PostgreSQL tips

  • PostgreSQL Reset Password – shows you how to reset forgotten password of the postgres user.
  • psql Commands – gives you the most common psql command to help you query data from PostgreSQL faster and more effective.
  • PostgreSQL Describe Table – gets information on a particular table.
  • PostgreSQL Show Databases – lists all databases in the current database server
  • PostgreSQL Show Tables – shows all tables in the current database.
Previous Tutorial: PostgreSQL Tutorial
Next Tutorial: PostgreSQL Stored Procedures

PostgreSQL Quick Start

  • What is PostgreSQL?
  • Install PostgreSQL
  • Connect to Database
  • Download PostgreSQL Sample Database
  • Load Sample Database
  • Explore Server and Database Objects

Databases Management

  • Create New Databases
  • Modify Databases
  • Delete Databases
  • Copy a Database
  • Get Database Object Sizes

PostgreSQL Roles Administration

  • Introduction to PostgresQL Roles

PostgreSQL Backup & Restore

  • PostgreSQL Backup Databases
  • PostgreSQL Restore Databases

Tablespaces Management

  • Creating Tablespaces
  • Changing Tablespaces
  • Deleting Tablespaces

About PostgreSQL Tutorial

PostgreSQLTutorial.com is a website dedicated to developers and database administrators who are working on PostgreSQL database management system.

We constantly publish useful PostgreSQL tutorials to keep you up-to-date with the latest PostgreSQL features and technologies. All PostgreSQL tutorials are simple, easy-to-follow and practical.

Recent PostgreSQL Tutorials

  • PostgreSQL ANY Operator
  • PostgreSQL EXISTS
  • How To Delete Duplicate Rows in PostgreSQL
  • PostgreSQL TO_CHAR Function
  • PostgreSQL TO_NUMBER Function
  • PostgreSQL TO_TIMESTAMP Function
  • PostgreSQL CEIL Function
  • PostgreSQL MOD Function
  • PostgreSQL FLOOR Function
  • PostgreSQL ABS Function

More Tutorials

  • PostgreSQL Cheat Sheet
  • PostgreSQL Administration
  • PostgreSQL PHP
  • PostgreSQL Python
  • PostgreSQL JDBC
  • PostgreSQL Resources

Site Info

  • Home
  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2017 by PostgreSQL Tutorial Website. All Rights Reserved.