]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reflect index's column operator class on PostgreSQL 12504/head
authorDenis Laxalde <denis@laxalde.org>
Mon, 7 Apr 2025 13:09:27 +0000 (15:09 +0200)
committerDenis Laxalde <denis@laxalde.org>
Wed, 28 May 2025 06:27:56 +0000 (08:27 +0200)
commit8fdf93e1b27c371f52990d5fda8b2fdf79ec23eb
tree07ab03a6ca4e586f35e6dbe5ab6f07f0fc25f483
parent15f551f250ba689fb12fb3d01275d452d4b815fc
Reflect index's column operator class on PostgreSQL

Fill the `postgresql_ops` key of PostgreSQL's `dialect_options` returned
by get_multi_indexes() with a mapping from column names to the operator
class, if it's not the default for respective data type.

As we need to join on ``pg_catalog.pg_opclass``, the table definition is
added to ``postgresql.pg_catalog``.

Fixes #8664.
doc/build/changelog/unreleased_20/8664.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/pg_catalog.py
test/dialect/postgresql/test_reflection.py