Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Slotted page structure of PostgreSQL

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

In PostgreSQL, tables are stored in heap files in a slotted slotted-page format, which facilitates the storage of variable-length records.

Although this architecture allows tuples to be added or removed from a page, based on PostgreSQL's MVCC approach, these operations do not really delete or replace the old version of the row immediately. Expired tuples can be physically deleted through subsequent commands, creating holes in the page. The strategy of indirectly accessing tuples through an array of row pointers makes these holes reusable.

Most relational databases limit records to no more than a block size, which simplifies buffer management and free space management. Large objects are often stored in a special file (or collection of files) rather than with other (short) attributes of the record. A (logical) pointer to the object is then stored in the record that contains the large object.

For more information on this article, please see:

Https://hanson69.github.io/2020/05/05/PG%E7%9A%84%E5%88%86%E6%A7%BD%E9%A1%B5%E7%BB%93%E6%9E%84/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report