Re: Using "object orientated" tables?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Connah <simon(dot)n(dot)connah(at)protonmail(dot)com>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: Using "object orientated" tables?
Date: 2022-05-11 01:50:03
Message-ID: 39422.1652233803@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Simon Connah <simon(dot)n(dot)connah(at)protonmail(dot)com> writes:
> I was wondering what the community thought of using table inheritance in PostgreSQL? Is it considered bad practice these days?

Mmm ... not if the various caveats[1] don't bother you. The biggest
stumbling block for most people, I think, is that you can't have
foreign keys that reference the whole inheritance hierarchy.

regards, tom lane

[1] https://www.postgresql.org/docs/current/ddl-inherit.html#DDL-INHERIT-CAVEATS

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Simon Connah 2022-05-11 01:51:49 Re: Using "object orientated" tables?
Previous Message David G. Johnston 2022-05-11 01:43:08 Re: Using "object orientated" tables?