Put pg into pg-8 compat mode for sqlalchemy with binary content
This commit is contained in:
parent
65fcd27282
commit
9d744d71e3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
# -----------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue