简体   繁体   中英

How postgresql manage columns

I want to know the way how postgresql manage columns of table.

Say for eg

I have created one table that contains 2 fields, so how postgresql manage these columns, table? In how many tables postgresql create entry for a single column ?

I would like to know the structure how the postgresql manage table and it's fields.

I only about pg_attribute table.

It would be good if anyone can share useful links.

Any help would be really appriciated.

Tables (and indexes) are organized in 8KB blocks in files in the data directory.

The column definitions are only in pg_attribute .

A table row with all its columns is stored together in one table block, and a table block can contain several such rows. In other words, PostgreSQL uses the traditional row oriented storage model.

Details can be read in the documentation .

Note: Don't use PostgreSQL 9.1 any more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM