Live data from Hacker News

Postgres Insider Terminology

crunchydata.com

1–10 of 36 posts

Re: Postgres Insider Terminology

#4
When studying the internals of Postgres years ago, I learned that pages could greatly affect the disk space required to hold a table. If the page size was 8192 bytes (the default) and if the schema defined each row as holding 4097 bytes, then two rows would not fit within a single page. This would cause every row to be within its own page and would waste almost half of the space.

Anyone know if this is still true?

Re: Postgres Insider Terminology

#5

When studying the internals of Postgres years ago, I learned that pages could greatly affect the disk space required to hold a table. If the page size was 8192 bytes (the default) and if the schema defined each row as holding 4097 bytes, then two rows would not fit within a single page. This would cause every row to be within its own page and would waste almost half of the space. Anyone know if this is still true?

Afaik, this is still true in most cases.* this is true for almost every database.

* Except, maybe, toast, hot or compressed..

Re: Postgres Insider Terminology

#6
post #5

When studying the internals of Postgres years ago, I learned that pages could greatly affect the disk space required to hold a table. If the page size was 8192 bytes (the default) and if the schema defined each row as holding 4097 bytes, then two rows would not fit within a single page. This would cause every row to be within its own page and would waste almost half of the space. Anyone know if this is still true?

Afaik, this is still true in most cases.* this is true for almost every database. * Except, maybe, toast, hot or compressed..

> this is true for almost every database.

...that uses fixed sized pages.

Re: Postgres Insider Terminology

#8
post #6
post #5

Earlier quoted context omitted.

Afaik, this is still true in most cases.* this is true for almost every database. * Except, maybe, toast, hot or compressed..

> this is true for almost every database. ...that uses fixed sized pages.

so true for almost every sql database? or not?

Re: Postgres Insider Terminology

#10
post #9

Earlier quoted context omitted.

so true for almost every sql database? or not?

MyRocks is MySQL backed by an LSM tree, and so it doesn't have fixed sized pages.

so a mysql storage engine that uses the rocksdb key/value store?

sounds like could be one of those rule-proving exceptions, even if it is a big facebook project

Post reply on HN