Category HOW TO

MMAP vs POSIX : PostgreSQL Dynamic Shared Memory

postgresql posix

[postgres@stagdb pg_dynshmem]$ ls -lrt total 8 -rw——- 1 postgres postgres 6928 Feb 17 16:36 mmap.2106693104 [postgres@stagdb pg_dynshmem]$ pwd /u01/pgsql/10/pg_dynshmem There is a file in pg_dynshmem sub-directory under PostgreSQL data directory. But what is that file? The answer is here, But…

Understanding buffer life cycle in PostgreSQL

buffer life cycle in postgresql.png

What happens when you execute a transaction in PostgreSQL? The block will be fetched to shared buffers, executed there and upon commit, the dirty buffer will leave to disk again, but how does that happen? The answer is here. PostgreSQL…

PostgreSQL 13 New Feature – Drop Database

postgresql-13-drop-database

Drop Database in PostgreSQL 13 Warning: The information provided here is based on unsupported development version of PostgreSQL 13. DROP DATABASE drops a database. It removes the catalog entries for the database and deletes the directory containing the data. It…

PostgreSQL Connection To Database

how a connection to postgres database is established

in this tutorial, we will show you how PostgreSQL connection to the database is established. How PostgreSQL connection to the database is established PostgreSQL is implemented using a simple “process per user” client/server model. In this model, every client process is connected to…