Postgre SQL Database Administration
Postgre SQL Database Administration
75
Jakarta Selatan 12910 – Indonesia
Prerequisite:
• Internet access is required to download PostgreSQL Server
• Basic understanding of database concept would help
• Basic understanding of SQL would help
Course Outline:
Introduction & Architecture
• History of PostgreSQL
• Major Features
• Limitations
• Architectural Overview
• PostgreSQL Terminology
• PostgreSQL System Architecture
• Architectural Summary
• Database Clusters
• Physical Database Architecture
• Data File Architecture
• Database File Layout
• Database Page Layout
• Process Architecture
• Connect Request
• Backend Spawning
• Multi-Version Concurrency Control (MVCC)
• Write-Ahead Logging
Wisma Bumiputera 18th floor Jl. Jend. Sudirman Kav.75
Jakarta Selatan 12910 – Indonesia
Installation
• Creating a database cluster
• Starting and Stopping the Server (Windows)
• Starting and Stopping the Server (Other)
• Lab Exercise - Installation
• Install PostgreSQL from source
• Create a database cluster
• Start the database server
• Connect to the server using psql
• Stop the database server
• Using PSQL Tool
Performance Tuning
• Explain and Explain Analyze
• Forcing Query Plan Selection
• Helping the Optimizer
• Using Views
• Creating Rules with Views
• Indexing
• Constraints
• Clustering Rows
• Archive command
• Recovery file parameters
• Lab to test PITR
Security
• Levels of security: pg_conf, schemas and
• users and table level.
• USERS; GROUPS; ROLES
• Object Ownership
• Access control
• Application Access
• pg_hba.conf
• Schemas and Search Paths
• Lab to create USERS, SCHEMAS, ROLES,
• Alter SEARCH_PATH, GRANT and REVOKE
• privileges