Visão Geral
O Curso PostgreSQL Administration Overview, é projetado para fornecer aos participantes uma compreensão abrangente (como construir, consultar, administrar, fazer backup e proteger o PostgreSQL.) e prática das habilidades necessárias para gerenciar e manter bancos de dados PostgreSQL de maneira eficiente. Este curso aborda desde os fundamentos da administração de banco de dados até técnicas avançadas de configuração, otimização e segurança.
Pre-Requisitos
Todos os alunos do treinamento em Administração PostgreSQL devem ter experiência com administração de banco de dados em outra plataforma (embora possamos adaptar as aulas aos participantes sem essa experiência, mediante solicitação). Os trainees também devem estar confortáveis com a navegação e edição de arquivos em um ambiente Linux. Uma compreensão das instruções SQL também é útil.
Conteúdo Programatico
PostgreSQL Introduction & Architecture
- Introduction and History
- The rise of PostgreSQL Popularity
- Getting support for PostgreSQL
- The PostgreSQL community
- Getting started with PostgreSQL
PostgreSQL Installation
- Installation options: Binary vs. Source
- Binary Installation
- Source Installation
- Discuss PostgreSQL distributions
- Discuss cloud and hosted PostgreSQL
The PostgreSQL Cluster
- High-level PostgreSQL architecture
- Definition of a cluster
- Common PostgreSQL executables
- Initializing a PostgreSQL Cluster
- Cluster configuration files
- Starting and Stopping a PostgreSQL Cluster
Creating Databases and Users
- Templates
- Creating PostgreSQL Databases
- Users, Groups, and Roles
- PostgreSQL role inheritance
Security – Host-Based Authentication
- The pg_hba.conf file
PostgreSQL Configuration
- The postgresql.conf file
- Making persistent configuration changes
Introduction to PSQL
- Connecting the PSQL client
- PSQL command line parameters
- PSQL l meta Commands
- PSQL input and output
PostgreSQL Database Objects
- PostgreSQL data type overview
- Discussion of PostgreSQL schemas
- Object names and search path
- Creating, altering, and dropping tables
- Creating and dropping views
- Creating, refreshing, dropping materialized views
- Notes on COMMIT
- Notes on case sensitivity
Copying and Importing Data with PostgreSQL
- PostgreSQL data import and export methods
- COPY
- Copy PSQL meta command
pgAdmin
- Overview of basic pgAdmin features and utilities
- Demonstration of pgAdmin dashboards
PostgreSQL Encryption
- Discussion of encryption at rest
- Discussion of encryption in transit
- The future of PostgreSQL encryption
- Basic SSL server setup and configuration
PostgreSQL Backup and Recovery
- PostgreSQL logical backup
- PostgreSQL physical backup
- Using pg_dump
- Using pg_dumpall
- Recovery from logical backups
- Using pg_restore
- Performing an offline physical backup
- Using pg_basebackup
- Recovery from a physical backup
PostgreSQL Streaming Replication
- Overview
- Discussion of PostgreSQL replication options
- Setup a hot-standby configuration
- Monitoring
- Replication slots
PostgreSQL Internals – System Catalogs and Cluster Settings
- Overview of system catalogs
- Overview of system views
- Modifying cluster settings
Logging and Monitoring Tools
- Logging SQL queries
- System log configuration and management
- Installing and using pg_stat_statements
- PostgreSQL stats views
- Query analysis with EXPLAIN
- Visualizing EXPLAIN output
Upgrading PostgreSQL
- Minor version upgrades
- Major version upgrades
- Discussion of data conversion
- pg_upgrade
Logical Replication
- Features of PostgreSQL native logical replication
- Setup a logical replication configuration
Continuous Archiving and Point In Time Recovery (PITR)
- Configuring PostgreSQL Point In Time Recovery
- Recovering from a PITR backup
- Recovering to a specific point in time
- Discussion of popular backup utilities