summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-10 15:05:27 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-10 15:05:27 -0400
commit5d1206c10a96b6685e57baa9ae09f04f00cf425b (patch)
tree83d9b95739e5d69e73105ea9ef1228fd370f31fe /lib/sqlalchemy/dialects/postgresql/base.py
parent7ac81f6d0a8481fdd6e5832648ae1ad973da19e4 (diff)
downloadsqlalchemy-5d1206c10a96b6685e57baa9ae09f04f00cf425b.tar.gz
- changelog and docs for pullreq bitbucket:45
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index c819f36c3..5899bb411 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -402,6 +402,24 @@ underlying CREATE INDEX command, so it *must* be a valid index type for your
version of PostgreSQL.
+.. _postgresql_index_concurrently:
+
+Indexes with CONCURRENTLY
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The Postgresql index option CONCURRENTLY is supported by passing the
+flag ``postgresql_concurrently`` to the :class:`.Index` construct::
+
+ tbl = Table('testtbl', m, Column('data', Integer))
+
+ idx1 = Index('test_idx1', tbl.c.data, postgresql_concurrently=True)
+
+The above index construct will render SQL as::
+
+ CREATE INDEX CONCURRENTLY test_idx1 ON testtbl (data)
+
+.. versionadded:: 0.9.9
+
.. _postgresql_index_reflection:
Postgresql Index Reflection