Transaction ID wraparound PostgreSQL uses 32-bit transaction IDs. This is a pretty large number (about 4 billion), but with intensive work of the server, this number…
View More The Transaction ID Wraparound and Freezing in PostgreSQL-8Category: Postgres
Postgres
AutoVacuum in PostgreSQL-7
We’ve already mentioned that normally (i. e., when nothing holds the transaction horizon for a long time) VACUUM usually does its job. The problem is how…
View More AutoVacuum in PostgreSQL-7Vacuum in postgreSQL-6
What does vacuum do? In-page vacuum works fast, but frees only part of the space. It works within one table page and does not touch…
View More Vacuum in postgreSQL-6In-page Vacuum & HOT Updates in PostgreSQL-5
In-page vacuum during regular updates When accessing a page for either an update or read, if PostgreSQL understands that the page is running out of…
View More In-page Vacuum & HOT Updates in PostgreSQL-5How Consistent Data Snapshots Obtained from Tuples in PostgreSQL-4
What is a data snapshot? Data pages can physically contain several versions of the same row. But each transaction must see only one (or none)…
View More How Consistent Data Snapshots Obtained from Tuples in PostgreSQL-4Row Versions in PostgreSQL-3
Tuple header As already mentioned, several versions of each row can be simultaneously available in the database. And we need to somehow distinguish one version…
View More Row Versions in PostgreSQL-3Snapshot Isolation and Multi Version Concurrency Control in PostgreSQL-2
Relations If you look inside tables and indexes, it turns out that they are organized in a similar way. Both are database objects that contain…
View More Snapshot Isolation and Multi Version Concurrency Control in PostgreSQL-2Transaction Isolation in Postgres-1
Probably, everyone is at least aware of the existence of transactions, has come across the abbreviation ACID, and has heard about isolation levels. But we…
View More Transaction Isolation in Postgres-1Concurrency Control
Concurrency Control is a mechanism that maintains consistency and isolation, which are two properties of the ACID, when several transactions run concurrently in the database.…
View More Concurrency ControlSequential Scan calculation in PostgreSQL
The cost of the sequential scan is estimated by the cost_seqscan() function. In this subsection, we explore how to estimate the sequential scan cost of…
View More Sequential Scan calculation in PostgreSQL