]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
PostgreSQL now reflects per-column sort order on indexes.
authorEli Collins <elic@assurancetechnologies.com>
Thu, 13 Jun 2019 14:37:16 +0000 (10:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Jun 2019 13:04:34 +0000 (09:04 -0400)
commit8c826331a51df06c149f749160e7f5aecd8570b4
treee6f9bbeabc48a0192896723b8ccf3ebbad40bd86
parentee8d01d7976886589d36f9a7f6e32c75df39a263
PostgreSQL now reflects per-column sort order on indexes.

Added support for column sorting flags when reflecting indexes for
PostgreSQL, including ASC, DESC, NULLSFIRST, NULLSLAST.  Also adds this
facility to the reflection system in general which can be applied to other
dialects in future releases.  Pull request courtesy Eli Collins.

Fixes: #4717
Closes: #4725
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4725
Pull-request-sha: 3cbb067bd46776fdb125553ba0ac192cb45d060c

Change-Id: I8b0617d68580cfe4ff79d758a077263f33e852c2
(cherry picked from commit b4be7ceb86baeb8e1db4de38911a8c9e7acdd532)
doc/build/changelog/unreleased_13/4717.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/reflection.py
test/dialect/postgresql/test_reflection.py