]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't include PG INCLUDE columns as regular index columns
authormike bayer <mike_mp@zzzcomputing.com>
Wed, 18 Mar 2020 23:05:20 +0000 (19:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Mar 2020 23:28:49 +0000 (19:28 -0400)
commitee9bd719b7fc5f9ad34df8815ccca56d5a7a65cc
treeb92bb404838f08e5519605227af07e2db21f0b2c
parent8811ea705d22b4ee6c343683a70ad3b5fb6f3e34
Don't include PG INCLUDE columns as regular index columns

Fixed issue where a "covering" index, e.g. those which have an  INCLUDE
clause, would be reflected including all the columns in INCLUDE clause as
regular columns.  A warning is now emitted if these additional columns are
detected indicating that they are currently ignored.  Note that full
support for "covering" indexes is part of :ticket:`4458`.  Pull request
courtesy Marat Sharafutdinov.

Fixes: #5205
Closes: #5206
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5206
Pull-request-sha: 512a3817bb21991142add2d192fa7ce9b285369d

Change-Id: I3196a2bf77dc5a6abd85b2fbf0ebff1b30d4fb00
doc/build/changelog/unreleased_13/5205.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py