Postgres Arch
Postgres Arch
PostgreSQL Architecture
Module Objectives:
• Fundamentals of PostgreSQL Architecture
• Process and Memory Architecture
• Post Master Process
• Post Master Process Demo
• Utility Processes
• Memory Segments
• Physical Files
PostgreSQL Architecture Fundamentals
Archive
Shared Buffer Logs
Other CLOG
Wal Buffer
Buffers Buffer
Wal Files
• CLOG stands for "commit log", and the CLOG buffers is an area in operating
system RAM dedicated to hold commit log pages.
• The commit logs have commit status of all transactions and indicate whether
or not a transaction has been completed (committed).
• Work Memory is a memory reserved for either a single sort or hash
table( Parameter : Work_mem)
• Maintenance Work Memory is allocated for Maintenance work( Parameter
: maintenance_work_mem).
• Temp Buffers are used for access to temporary tables in a user session
during large sort and hash table. ( Parameter : temp_buffers).
Physical Files:
• Data Files: It is a file which is use to store data. It does not contain
any instructions or code to be executed.
• Wal Files : Write ahead log file, where all transactions are written
first before commit happens.
• Log Files: All server messages, including stderr, csvlog and syslog are
logged in log files.
• Archive Logs( Optional): Data from wal segments are written on to
archive log files to be used for recovery purpose.
Thank You.