Pre-Requisitos
Todos os participantes do treinamento PostgreSQL devem ter experiência substancial como administrador de uma plataforma de banco de dados moderna, como Oracle, SQL Server ou DB2.
Conteúdo Programatico
PostgreSQL Introduction & Architecture
- Introduction and History
- Getting support for PostgreSQL
- The PostgreSQL community
- Getting started with PostgreSQL
- Major differences between self-managed PostgreSQL and RDS
The PostgreSQL Cluster
- High-level PostgreSQL architecture
- Definition of a cluster
- Review PostgreSQL executables
- Cluster configuration on RDS
- RDS Parameter groups
Creating Databases and Users
- Templates
- Creating PostgreSQL Databases
- Users, Groups, and Roles
- PostgreSQL role inheritance
Security
- Discussion of encryption at rest
- Discussion of encryption in transit
- Basic SSL client setup
- PostgreSQL and TDE
PostgreSQL Configuration
- The postgresql.conf file
- Making persistent configuration changes
- Using ALTER SYSTEM
- RDS Parameter groups
Introduction to psql
- Connecting the psql client
- psql command line options
- psql meta commands
- psql input and output
PostgreSQL Database Objects
- PostgreSQL data type overview
- Schemas
- Configuring User-Schema Relationships
- Schema search path
- Views and Materialized Views
- Notes on COMMIT
- Notes on case sensitivity
Copying and Importing Data
- The SQL COPY utility
- Using the \copy PSQL meta command
- Exporting data to AWS S3
- Transporting data between instances (pg_transport)
PostgreSQL Backup and Recovery
- PostgreSQL logical backup
- Using pg_dump
- Using pg_dumpall
- Recovery from logical backups
- Using pg_restore
PostgreSQL Streaming Replication
- Replication in RDS
- Setting up RDS replicas
PostgreSQL Internals – System Catalogs and Cluster Settings
- Overview of system catalogs
- Overview of system views
- Querying system catalogs and views
Logging, Monitoring and Query Performance Tools
- System log configuration and management
- Logging SQL queries
- Logging security events
- Publishing RDS logs
- Using pg_stat_statements extension for query tuning
- PostgreSQL stats views
- Query analysis with EXPLAIN
- Visualizing EXPLAIN output
Upgrading PostgreSQL
- Minor version upgrades
- Major version upgrades
- Discussion of data conversion
- Running a major upgrade in RDS