tpetry / laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features
MIT License
772 stars 31 forks source link

Table inheritance #4

Closed henriquecm closed 1 year ago

henriquecm commented 3 years ago

I got interested in Postgres after seeing the post in laravel-news.com, so I was researching differences compared to mysql and saw that you can create make a table inherit another in postgres.

It's possible to do that with this package or that option doesn't exist yet.

tpetry commented 3 years ago

Table inheritance is not implemented yet. What is your use case for it?

henriquecm commented 3 years ago

I haven't started using postgres yet, I have some possible cases, but I don't know if they are 100% fit for it. There's one project that I'll starting modelling the db soon, and it's pretty complex so it might come in handy. Specially with things like custom fields.

tpetry commented 1 year ago

I am closing this issue as the PostgreSQL wiki advocates to never use table inheritance (Don't use table inheritance). There wasn't any feedback why it is needed in more than a year.

You can always use raw SQL statements to use table inheritance. I plan to only support safe functionality without any hidden problems.