<@U04S8PLJWMT>, a column got removed in the source...
# ask-ai
s
@kapa.ai, a column got removed in the source , airbyte remove that column in the destination in postgres to postgres cdc replication, is this the desired behaviour ?
k
When using Airbyte for Postgres-to-Postgres CDC (Change Data Capture) replication, the desired behavior regarding column removal is as follows: - Schema changes, such as removing a column in the source, are not automatically reflected in the destination. If you remove a column from the source table, Airbyte does not automatically drop that column from the destination table during CDC syncs. The removed column will persist in the destination, typically with blank or null values for new records, unless you take additional action. - To update the destination schema to match the source (i.e., to remove the column in the destination), you need to: 1. Refresh the source schema in the Airbyte UI. This will detect schema changes and prompt you to review them. 2. Reset the affected streams after saving the schema changes. This reset will delete the data in the destination for those streams and re-sync the data, which will update the destination schema to match the source—including removing columns that no longer exist in the source. This is confirmed in community discussions and documentation, which state that schema changes are not handled automatically for CDC sources, and a reset and resync is required to reflect such changes in the destination. Without this reset, removed columns will remain in the destination with empty values for new records, which is not always the desired behavior, but it is the default unless you perform the reset process [How to reflect schema changes in destination for Postgres to Postgres CDC?](https://discuss.airbyte.io/t/1080), [When refreshing schema I want any columns that have been removed or changed to not persist](https://discuss.airbyte.io/t/3955), [Postgres Troubleshooting - Connector Limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations). In summary: No, Airbyte does not automatically remove a column in the destination when it is removed from the source in Postgres-to-Postgres CDC replication. You must refresh the schema and reset the stream to achieve this behavior. This is the expected and documented workflow.