]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Support has been improved for Postgresql reflection behavior on very old
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Feb 2014 23:35:23 +0000 (18:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Feb 2014 23:35:23 +0000 (18:35 -0500)
commitecdfc31774e226b9f57701ae197d1bcbaf6afa24
treebe2b51199ebef39ee4a26e47c6b8b77e0388843e
parentfdedb69d9c6d995fc85105c22f0f537ea25a0c44
- Support has been improved for Postgresql reflection behavior on very old
(pre 8.1) versions of Postgresql, and potentially other PG engines
such as Redshift (assuming Redshift reports the version as < 8.1).
The query for "indexes" as well as "primary keys" relies upon inspecting
a so-called "int2vector" datatype, which refuses to coerce to an array
prior to 8.1 causing failures regarding the "ANY()" operator used
in the query.  Extensive googling has located the very hacky, but
recommended-by-PG-core-developer query to use when PG version < 8.1
is in use, so index and primary key constraint reflection now work
on these versions.
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_dialect.py
test/dialect/postgresql/test_query.py
test/dialect/postgresql/test_reflection.py
test/dialect/postgresql/test_types.py