Curso PostgreSQL Administration
32 horasVisão Geral
Visão geral do curso de administração do PostgreSQL
Este curso de administração do PostgreSQL cobre administração, manutenção, segurança e ajuste de desempenho dos bancos de dados PostgreSQL versão 10, 11 e 12.
Exercícios e exemplos são usados ao longo do curso para fornecer experiência prática com as técnicas abordadas.
Objetivos do Curso
Este curso visa fornecer ao delegado o conhecimento para ser capaz de instalar, administrar, manter, fazer backup, recuperar e ajustar um banco de dados PostgreSQL.
Objetivo
Após a conclusão deste Curso PostgreSQL Administration você será capaz de:
- Instale PostgreSQL
- Crie um banco de dados
- Gerenciar funções e privilégios
- Gerenciar esquemas
- Tratamento de transações e simultaneidade
- Examine estatísticas e tabelas de sistema
- Gerenciar tablespaces
- Entenda o relatório e registro de erros
- Realize a manutenção periódica com autovacuum
- Faça backup e recupere bancos de dados
- Crie índices para melhorar o acesso à tabela
- Otimize consultas e índices
- Defina as configurações para aumentar o desempenho
- Preencher um novo banco de dados de forma eficiente
Publico Alvo
Este curso de administração do PostgreSQL foi desenvolvido para administradores de banco de dados profissionais que precisam obter uma compreensão dos recursos e funcionalidades que podem ser usados para gerenciar bancos de dados PostgreSQL 10, 11 e 12. Este curso também é adequado para usuários de bancos de dados PostgreSQL 9.
Pre-Requisitos
Este curso pressupõe um bom conhecimento prático de SQL e, especificamente, das instruções SELECT, INSERT, UPDATE e CREATE TABLE. Este conhecimento pode ser obtido através da frequência do curso de pré-requisitos SQL para PostgreSQL .
Este curso é executado em um sistema operacional Linux, portanto, é necessário um bom conhecimento prático de UNIX / Linux.
Informações Gerais
- Carga horaria, 32h
- Se noturno o curso e ministrado de segunda-feira a sexta-feira, das 19h às 23h, total de 8 noites,
- Se aos sábados o curso e ministrado de 09h às 18h, total de 4 sábados
Formato de Entrega:
- On-line ao vivo em tempo real na presença de um consultor/instrutor DBA
- Presencial em sala de aula
- In-company
Materiais
Inglês | PortuguêsConteúdo Programatico
Course Introduction
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
INSTALLATION AND CONFIGURATION OF POSTGRESQL
- 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
POSTGRESQL ARCHITECTURE
- Overview of PostgreSQL Architecture
- The PostgreSQL Instance
- PostgreSQL Processes
- How Data is Processed by PostgreSQL
- PostgreSQL Directory Structure
- Manage a PostgreSQL Instance
- Automate the Startup of PostgreSQL at Boot Time
- The PostgreSQL Configuration Files
- Multiversion Concurrency Control
- The Vacuum utility
- PostgreSQL WAL
POSTGRESQL CLIENT APPLICATIONS
- Overview of PostgreSQL Client Applications
- The PostgreSQL Interactive Client Terminal - psql
- The pgAdmin Tool
- The pgAgent Tool
- Client and host based access control
- Client Connection Problems
- Authentication Failures
- Server Startup Failures
CREATE AND CONFIGURE A DATABASE
- 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
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
ROLE MANAGEMENT
- 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
FINE GRAINED ACCESS CONTROL USING GRANT
- 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 CREATION AND MANAGEMENT
- 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
TRANSACTIONS AND CONCURRENCY
- Overview of Transaction Processing in PostgreSQL
- Transaction Properties
- Locking Concepts
- Levels of Transaction Isolation
- Atomic Changes
- Explicit and Implicit Table Locking
- Transaction Control
- Lock Management Parameters
- Locking and Indexes
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 Visability Map
- Index Storage
MANAGE TABLESPACES
- 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
- Delete a Tablespace
- Session 12: POSTGRESQL LOGGING
- The Principles and Usages of Logging
- PostgreSQL Log Destinations
- Logging Parameters
- Error Reporting and Logging
- What Should be Logged and When
- CSV Format Log Output
POSTGRESQL EXTENSIONS
- 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
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
- Restore a Database with pgAdmin
- Filesystem Backup
POINT-IN-TIME RECOVERY (PITR)
- Overview of PITR
- Continuous Archiving
- Overview of PostgreSQL Write-ahead Logs
- List the Transaction Logs
- Checkpoints
- Transaction Log Optimisation
- Setup PITR
- Creat an Initial Base Backup
- Exclusive and Non-Exclusive Low Level Backups
- Test Transaction Log Archiving
- Replay Transaction Logs
- Archive Recovery Settings
- Timelines
- Archive Target Settings Parameters
- Locating the Correct Timestamp
- Clean up the Transaction Logs
THE POSTGRESQL QUERY OPTIMIZER
- Query Optimization
- Optimization Operations
- Optimization Decisions
- Join Methods
- Statement Transformation
- Use EXPLAIN to optimize Queries and Indexes
- Execution Plans
- The Statistics used by the Planner and the ANALYZE Command
- Query Planner Statistics
- Control the Planner with Explicit Join Clauses
- Detect Slow Queries
- Parameters Affecting Optimization
POPULATE A DATABASE EFFICIENTLY
- DISABLE autocommit
- Configure Variables for Increased PerformanceUse 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
SERVER PERFORMANCE TUNING AND MONITORING
- Optimize Storage and Manage Cleanup with VACUUM
- Monitor Database Activities
- Statistics Collection
- Set postgres.conf Cache Parameters