]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reflect expression-based indexes on PostgreSQL
authorFederico Caselli <cfederico87@gmail.com>
Sat, 2 Jul 2022 21:49:07 +0000 (23:49 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 28 Jul 2022 17:27:23 +0000 (19:27 +0200)
commit68a3374d5aae83b75b943b186802a6975e6b46fb
tree450911f6ccd057562ed7656406161db4a4a9b816
parent2ab519f59cf81307966dba3d5b8a176d45deb297
Reflect expression-based indexes on PostgreSQL

The PostgreSQL dialect now supports reflection of expression based indexes.
The reflection is supported both when using
:meth:`_engine.Inspector.get_indexes` and when reflecting a
:class:`_schema.Table` using :paramref:`_schema.Table.autoload_with`.
Thanks to immerrr and Aidan Kane for the help on this ticket.

Fixes: #7442
Change-Id: I3e36d557235286c0f7f6d8276272ff9225058d48
12 files changed:
doc/build/changelog/unreleased_20/7442.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/pg_catalog.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/postgresql/test_reflection.py
test/engine/test_reflection.py
test/requirements.py