On 14/09/2016 16:09, Antoine Nguyen wrote:
As I said, I made some tests with postgres and I think I found an interesting hint inside logs:

LOG:  statement: set client_encoding to 'LATIN1'

LOG: statement: SELECT name FROM admin_domain WHERE name='raté.com' AND type='domain' AND enabled

This is the result of postmap execution, it uses LATIN1 as encoding and not UTF8... (whereas server default encoding is UTF8 and my shell's current locale is en_US.UTF-8)

I haven't found how to change default client encoding yet... Does postfix set it ?

Sorry to reply to myself but looks like the answer is here:

https://github.com/vdukhovni/postfix/blob/506a3e8993d1d73b397a113b89319ff997e8673b/postfix/src/global/dict_pgsql.c#L644

Antoine

Reply via email to