summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorRodrigo Menezes <rodrigo.menezes@moat.com>2014-08-14 17:19:10 -0400
committerRodrigo Menezes <rodrigo.menezes@moat.com>2014-08-14 17:19:10 -0400
commit4b26bf2e6f254d5cfc0998a9399a310c0f59944b (patch)
treef3e19c6a8eccfde8c4023f1cda4f0476e166308f /lib/sqlalchemy/dialects/postgresql/base.py
parent8af9c7670e07037259dc89510559d34a4e7ccc6f (diff)
downloadsqlalchemy-4b26bf2e6f254d5cfc0998a9399a310c0f59944b.tar.gz
Add a view synonym too for consistency.
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 19d2c7ca4..893b4b3c1 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1953,7 +1953,8 @@ class PGDialect(default.DefaultDialect):
RELKIND_SYNONYMS = {
'materialized': 'm',
- 'foreign': 'f'
+ 'foreign': 'f',
+ 'view': 'v'
}
ACCEPTED_RELKINDS = ('r','v','m','f')
if postgresql_relkind is None: