3 ms·
Doesn’t Postgres support this with table inheritance https://www.postgresql.org/docs/current/tutorial-inheritance.html https://www.postgresql.org/docs/current/t
by AlphaSite 4y ago
Doesn’t Postgres support this with table inheritance https://www.postgresql.org/docs/current/tutorial-inheritance.html https://www.postgresql.org/docs/current/tutorial-inheritance... I don’t know if they’re recommended, but they are an option.
- nickreese 4y agoThank you for this. Modeling an annoying amount of similar models currently and this just gave me what I was looking for.
- ImprobableTruth 4y agoThey're not recommended: https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_table_inheritance https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use.... They're incomplete (e.g. don't work with foreign keys) and are essentially unmaintained.