pgsql: encoding association