Since Postgresql 11 covered index have been introduced. We create a covered index using INCLUDE
keyword like this:
CREATE INDEX index_name ON table_name(indexed_col_name) INCLUDE (covered_col_name);
Here the official postgresql doc for more details.
I have done some research on Google but did not find how to implement this feature with SQLAlchemy and include it in the migration file generated by Alembic. Any proposition, idea, doc link will be appreciated.