Course description
This PostgreSQL Administration course covers administration, maintenance, security and performance tuning of PostgreSQL version 10, 11, 12, 13 and 14 databases.
Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.
Who will the Course Benefit?This PostgreSQL Administration course is designed for professional database administrators who need to gain an understanding of the features and functionality that can be used to manage PostgreSQL 10, 11, 12, 13 and 14 databases. This course is also suitable for users of PostgreSQL 9 databases.
Course ObjectivesThis course aims to provide the delegate with the knowledge to be able to install, administer, maintain, backup, recover and tune a PostgreSQL database.
Upcoming start dates
Suitability - Who should attend?
This course assumes a good working knowledge of SQL and specifically of the SELECT, INSERT, UPDATE and CREATE TABLE statements. This knowledge can be obtained by attendance on the pre-requisite SQL for PostgreSQL course.
This course is run on a Linux operating system, therefore a good working knowledge of UNIX/Linux is required. This knowledge can be gained by attendance on the pre-requisite Linux Introduction course
Experience to the level as demonstrated in these courses is recommended:
- Linux Introduction
- SQL for PostgreSQL
Training Course Content
PostgreSQL Administration Training Course
Course Contents - DAY 1
Course Introduction- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
- PostgreSQL Version Numbers
- PostgreSQL Configuration Recommendations
- Single Cluster and Database per Server
- File System Layouts
- Install PostgreSQL
- Install PostgreSQL on Linux/UNIX
- Post-Installation Setup
- Create a Database Cluster
- Basic Server Configuration
- Account Management
- Overview of PostgreSQL Architecture
- The PostgreSQL Instance
- How Data is Processed by PostgreSQL
- PostgreSQL Processes
- Shared Memory
- PostgreSQL Directory Structure
- Manage a PostgreSQL Instance
- The PostgreSQL Configuration Files
- Multiversion Concurrency Control
- The Vacuum utility
- PostgreSQL WAL
- Overview of PostgreSQL Client Applications
- The PostgreSQL Interactive Client Terminal - psql
- The pgAdmin Tool
- Client and host based access control
- Client Connection Problems
- Authentication Failures
- Server Startup Failures
- Create a New Database using the CREATE DATABASE Command
- Create a New Database using pgAdmin
- Start and Stop the Database Server
- Drop a Database
- Copy a Database
- List Databases
- Obtain Database Object Sizes
- Initialise a Cluster
Course Contents - DAY 2
Session 5: POSTGRESQL SCHEMAS- Overview of the Key Concepts of PostgreSQL Schemas
- Create and Drop a Schema
- The Public Schema
- The Schema Search Path
- Schemas and Privileges
- The System Catalog Schema
- Overview of the Information Schema
- Overview of PostgreSQL Roles and Privileges
- Create a User Defined Role
- Role Attributes
- Role Membership
- Assigning Users to Roles
- Group and User Role Inheritance
- Removing Roles
- Troubleshooting and Understanding Role Access
- Control Database Level Permissions
- Control Schema Level Permissions
- Grant Table Level Permissions
- Define Access Privileges with the GRANT Command
- Remove Access Privileges with the REVOKE Command
- Manage Column Rights
- Index Overview
- The CREATE INDEX Command
- Index Types
- Efficient Usage of PostgreSQL Indexes
- Index creation
- B-tree and Hash Indexes
- Single Column Indexes
- Multicolumn Indexes
- Index Based Expressions
- Partial Indexes
- List Indexes
- Manage and Maintain Indexes
- When Indexes Should be Avoided
- Overview of Transaction Processing in PostgreSQL
- Transaction Properties
- Transaction Control
- Multi-version Concurrency Control
- Concurrency Problems
- Isolation Levels
- Implicit Locking
- Explicit Locking
- Possible Causes of Lock Contention
- Deadlocks
- Advisory Locks
- Lock Management Parameters
Course Contents - DAY 3
Session 10: POSTGRESQL DATABASES STRUCTURE- The PostgreSQL Configuration Files
- Relocate the Configuration Files
- Physical Storage and File Layout
- Overview of Tablespace Usage
- Table and Row Storage
- Column Limitations
- Free Space Map
- The Visibility Map
- Index Storage
- Overview of PostgreSQL Tablespaces
- Default PostgreSQL Tablespaces
- Create a Tablespace using SQL Commands and pgAdmin
- Create a Tablespace in the UNIX Operating System
- Alter a Tablespace
- Drop a Tablespace
- PostgreSQL Event Log Destinations
- Configuring syslog, eventlog, stderr and csv format output
- Configuring What Should be Logged and When
- Install the PostgreSQL Contrib Module
- List the Available Extensions
- Add an Extension to the postgresql.conf File
- Create an Extension in a Database
- Drop an Extension in a Database
Course Contents - DAY 4
Session 14: BACKUP AND RECOVERY OF DATABASES- Overview of Backup Methods
- Export and Import Operations with COPY
- Backup a Database with Operating System Commands
- Backup a Database with pg_dump
- Backup User Credentials
- Backup All Databases with pg_dumpall
- Backup Database Object Definitions
- Backup databases with pg_Admin
- Overview of Database Restore
- Restore using psql
- Restore using pg_restore
- File system Backup and Recovery
- Write-ahead Logging and Crash Recovery
- Checkpoints
- List the Transaction Logs
- Transaction Log Optimisation
- Overview of PITR
- Setup PITR
- Continuous Archiving
- Test Transaction Log Archiving
- Create a Base Backup using the Low Level API
- Create a Base Backup using pgBaseBackup
- The PITR Recovery Process
- How To Perform a PITR Recovery
- Recovery Configuration Parameters
- Locating the Correct Timestamp
- Clean up the Archived Transaction Logs
Course Contents - DAY 5
Session 16: THE POSTGRESQL QUERY OPTIMIZER- Query Optimization
- Optimization Operations
- Optimization Decisions
- Scan Methods
- Join Methods
- Join Order
- Statement Transformation
- Prepared Statements
- Query Performance Analysis
- Detect Slow Queries
- Use EXPLAIN to optimize Queries and Indexes
- Execution Plans
- Query Planner Statistics
- The ANALYZE command
- The CREATE STATISTICS command
- Parameters Affecting Optimization
- Memory Settings That Affect Performance
- Optimize Storage and Manage Clean up with VACUUM
- Configure VACUUM
- Configure Autovacuum
- Cost Based Vacuum Delay
- Track a VACUUM Process
- Routine Maintenance Tasks
- Monitor Database Activities
- System Monitoring & PostgreSQL Monitoring
- Performance Statistics in the Server Log
- Statistics Collection Configuration
- Monitor Database Activity
- Monitor Table, Index and SQL Statement Activity
- Monitor Background Writer, WAL and Archiving Activity
- Progress Reporting
- Locks
- DISABLE autocommit
- Configure Variables for Increased Performance
- Use the COPY Command to Bulk Load Data
- Drop Indexes and Foreign Keys Temporarily
- Use the COPY command to Bulk Load Data
- Temporarily drop indexes and Foreign Key Constraints before a Bulk Load
- Configure Variables for Increased Performance
- Temporarily Disable WAL Archival and Streaming Replication
- Use pg_dump Efficiently
Customer Outreach Award
We believe that it should be easy for you to find and compare training courses.
Our Customer Outreach Award is presented to trusted providers who are excellent at responding to enquiries, making your search quicker, more efficient and easier, too.
Reviews
Average rating 5
A real training course, with hands on labs, explanations given in real time, properly described at high or detailed levels. Trainer had patience to answer all questions, no mat...
Course was actually a 2in1 for me as I use linux rarely so I was able to pactice not just postgre but also linux commands. I'm very satisfied with the instructor as well.
Continuing Studies
Further Learning
- PostgreSQL Advanced Administration
- PostgreSQL for Developers
- Python Programming 1
- PHP Developer
Request info
Why StayAhead. From a single person on a scheduled course to large scale training projects StayAhead Training have the expertise and experience to help. Established since 1992, StayAhead Training is recognised as one of the leading independent IT Training specialists...
Outside of the fact I am in the States and it required me to be up very early for 5 days, I don't regret it for a minute. The course was outstanding. The instructor could not ha...