Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Developing Modern Database Applications with PostgreSQL

You're reading from  Developing Modern Database Applications with PostgreSQL

Product type Book
Published in Aug 2021
Publisher Packt
ISBN-13 9781838648145
Pages 440 pages
Edition 1st Edition
Languages
Authors (2):
Dr. Quan Ha Le Dr. Quan Ha Le
Profile icon Dr. Quan Ha Le
Marcelo Diaz Marcelo Diaz
Profile icon Marcelo Diaz
View More author details

Table of Contents (17) Chapters

Preface 1. Section 1 - Introducing PostgreSQL Development and Administration
2. Introduction to PostgreSQL Development and Administration 3. Section 2 - Development in PostgreSQL
4. Setting Up a PostgreSQL RDS for ATMs 5. Using PostgreSQL and Node.js for Banking Transactions 6. Managing Bank ATM Locations Using PostgreSQL and Django 7. Creating a Geospatial Database Using PostGIS and PostgreSQL 8. Managing Banking Transactions using PostgREST 9. Section 3 - Administration in PostgreSQL
10. PostgreSQL with DevOps for Continuous Delivery 11. PostgreSQL High Availability Clusters 12. High-Performance Team Dashboards Using PostgreSQL and New Relic 13. Testing the Performance of Our Banking App with PGBench and JMeter 14. Test Frameworks for PostgreSQL 15. Other Books You May Enjoy APPENDIX - PostgreSQL among the Other Current Clouds

PostgreSQL process types

PostgreSQL has four types of processes: 

  • The postmaster process: The postmaster process is the first process to begin when you start PostgreSQL. It performs recovery, initializes shared memory, and runs background processes. It also creates a backend process when there is a connection request from the client process.
  • The background process: The list of background processes required for PostgreSQL operations can be found in the following table:
Process Role
Logger This writes the error message to the log file.
Checkpointer When a checkpoint occurs, the dirty data inside the shared buffer is written to the file.
Writer This periodically writes the dirty buffer to a file.
Wal writer This writes the WAL buffer to the WAL file.
Autovacuum launcher

This launches a new worker process and carries out vacuum operations on bloated tables.

Archiver When in Archive.log mode, this copies the WAL file to the specified directory.
Stats collector This collects DBMS usage statistics such as session execution information (pg_stat_activity) and table usage statistical information (pg_stat_all_tables).

Table 1.1 – The background processes of PostgreSQL

  • The backend process: The backend process performs the query request of the user process and then transmits the result. Some memory structures are required for query execution; this is called local memory.
  • The client process: The client process refers to the background process that is assigned for every backend user connection. Usually, the postmaster process will fork a child process that is dedicated to serving a user connection.
You have been reading a chapter from
Developing Modern Database Applications with PostgreSQL
Published in: Aug 2021 Publisher: Packt ISBN-13: 9781838648145
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}