Put pg into pg-8 compat mode for sqlalchemy with binary content

This commit is contained in:
Patrick Uiterwijk 2014-12-16 23:42:53 +00:00
parent 65fcd27282
commit 9d744d71e3

View file

@ -1,3 +1,10 @@
{% if ansible_hostname.startswith("db-fas01") %}
# This enabled pg-8 compatibility for bytea fields
# Fixes errors with sqlalchemy with binary data when app is on RHEL6 and server is PG9
# Reference: https://bitbucket.org/zzzeek/sqlalchemy/issue/2016/pickletype-does-not-work-with-postgresql
bytea_output = 'escape'
{% endif %}
# -----------------------------
# PostgreSQL configuration file
# -----------------------------