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.