public inbox for [email protected]  
help / color / mirror / Atom feed
From: Simon Connah <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: Using "object orientated" tables?
Date: Wed, 11 May 2022 01:52:59 +0000
Message-ID: <GplscGquyyDz8je2GgcpHDCPH3ukKsBVcesYOPKad8WHDghgfl9IfM4aMYKcWA-BK6-PXcK1EqfGZI6k2-io8Vr3oaLlmmpJ4XyVYFBXxzw=@protonmail.com> (raw)
In-Reply-To: <[email protected]>
References: <FD4Iyd89i-sbetQTcbUPO1SqWrYMGhzyso4ltpYmvWiI5LtHUxnPZNCyoJOhMOr3aQqvSKR9pISe55L3HStXrim-Q2wuufRQFkjGtAjIyS8=@protonmail.com>
	<[email protected]>

------- Original Message -------
On Wednesday, May 11th, 2022 at 02:50, Tom Lane <[email protected]> wrote:


> 

> 

> Simon Connah [email protected] 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

Thank you. I'll be sure to read that.

Simon.

Attachments:

  [application/pgp-signature] signature.asc (249B, ../GplscGquyyDz8je2GgcpHDCPH3ukKsBVcesYOPKad8WHDghgfl9IfM4aMYKcWA-BK6-PXcK1EqfGZI6k2-io8Vr3oaLlmmpJ4XyVYFBXxzw=@protonmail.com/2-signature.asc)
  download

view thread (6+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Using "object orientated" tables?
  In-Reply-To: <GplscGquyyDz8je2GgcpHDCPH3ukKsBVcesYOPKad8WHDghgfl9IfM4aMYKcWA-BK6-PXcK1EqfGZI6k2-io8Vr3oaLlmmpJ4XyVYFBXxzw=@protonmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox