-
Couldn't load subscription status.
- Fork 958
Postgres Inherits #1339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres Inherits #1339
Conversation
Fixed ALTER TYPE to update column types
|
@timwmillard How does inheritance with DDL statements that alter tables? The PostgreSQL docs seem to imply that all child tables should also be updated:
|
@kyleconroy, I did look into this. When altering a table to add inheritance the child table needs to already have all the parent column on the table. Example: In this example the child table already has the |
|
Same as if you |
So are ALTER statements just not supported for inheritance then? I can alter base tables without seeing derived tables getting the new fields: https://play.sqlc.dev/p/0a50edacd24090cbb53d83ec6fe69b11ba109a0ab6a80ae2e33aec35a6b6bef3 |
Support for Postgres Inheritance.
https://www.postgresql.org/docs/current/ddl-inherit.html
Fixes #403
Add the columns from the parent tables to the child table.
This change also adds support for columns from partition tables.