.. include:: changelog_07.rst
:start-line: 5
+.. changelog::
+ :version: 1.0.9
+
+ .. change::
+ :tags: bug, postgresql
+ :pullreq: github:190
+
+ An adjustment to the new Postgresql feature of reflecting storage
+ options and USING of :ticket:`3455` released in 1.0.6,
+ to disable the feature for Postgresql versions < 8.2 where the
+ ``reloptions`` column is not provided; this allows Amazon Redshift
+ to again work as it is based on an 8.0.x version of Postgresql.
+ Fix courtesy Pete Hollobon.
+
+
.. changelog::
:version: 1.0.8
:released: July 22, 2015
from .inspection import inspect
from .engine import create_engine, engine_from_config
-__version__ = '1.0.8'
+__version__ = '1.0.9'
def __go(lcls):
i.relname as relname,
ix.indisunique, ix.indexprs, ix.indpred,
a.attname, a.attnum, NULL, ix.indkey%s,
- i.reloptions, am.amname
+ %s, am.amname
FROM
pg_class t
join pg_index ix on t.oid = ix.indrelid
# cast does not work in PG 8.2.4, does work in 8.3.0.
# nothing in PG changelogs regarding this.
"::varchar" if self.server_version_info >= (8, 3) else "",
+ "i.reloptions" if self.server_version_info >= (8, 2)
+ else "NULL",
self._pg_index_any("a.attnum", "ix.indkey")
)
else:
eq_(ind, [{'unique': False, 'column_names': ['y'], 'name': 'idx1'}])
conn.close()
+ @testing.fails_if("postgresql < 8.2", "reloptions not supported")
@testing.provide_metadata
def test_index_reflection_with_storage_options(self):
"""reflect indexes with storage options set"""