When to use inherited tables in PostgreSQL?

后端 未结 7 1101
遇见更好的自我
遇见更好的自我 2020-12-12 11:40

In which situations you should use inherited tables? I tried to use them very briefly and inheritance didn\'t seem like in OOP world.

I thought it worked like this:<

7条回答
  •  不思量自难忘°
    2020-12-12 12:13

    Use it as little as possible. And that usually means never, it boiling down to a way of creating structures that violate the relational model, for instance by breaking the information principle and by creating bags instead of relations.

    Instead, use table partitioning combined with proper relational modelling, including further normal forms.

提交回复
热议问题