<@U04S8PLJWMT> hello! can i add indexes for destin...
# ask-ai
v
@kapa.ai hello! can i add indexes for destination postgres schema table?
k
Hello! Airbyte’s Postgres destination connector automatically creates several indexes on the internal tables it manages. For each raw table, Airbyte creates indexes such as: - An index on the
_airbyte_raw_id
column (e.g.,
<stream_name>_raw_id
) - An index on the
_airbyte_extracted_at
column - An index on the
_airbyte_loaded_at, _airbyte_extracted_at
columns - Sometimes a primary key index (e.g.,
<stream_name>_pkey
), which may duplicate the
_raw_id
index These indexes are created by Airbyte itself as part of its table management logic and are not user-configurable through the Airbyte UI or standard configuration. There is currently no documented way to add custom indexes to the destination Postgres tables via Airbyte’s configuration. If you need additional indexes, you would have to create them manually in your Postgres database after Airbyte has created the tables. However, be aware that Airbyte may drop and recreate tables during syncs, which could remove any manually added indexes. There are also some open issues regarding index duplication and naming conflicts, so be cautious if you plan to manage indexes yourself, as Airbyte’s internal logic may interfere with manual changes or lead to conflicts, especially with long table/index names or duplicate indexes on the same columns [Internal table indexes are duplicated](https://github.com/airbytehq/airbyte/issues/61349) [Connector creates conflicting relations making sync fail](https://github.com/airbytehq/airbyte/issues/45345). In summary: - Airbyte automatically manages indexes for its internal tables in the Postgres destination. - You cannot configure custom indexes through Airbyte. - Manual index creation is possible but may be overwritten by Airbyte’s operations. If you have a specific indexing need, you may want to monitor the relevant GitHub issues for updates or consider contributing to the connector’s development.