Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Codec error with psycopg 2.4 and django 1.3

#50

Submitted by: Andrei Antoukh

Since I upgraded from 2.3 to 2.4 psycopg'm having a problem with my django web applications, connect to the database.

When you synchronize (Django), I get this error: http://pastebin.com/hQ2s5nyQ

Note: This error happens in my linux systems with postgresql 9.x, but freebsd8.2 with the same version of postgresql works correctly.
The python version is 2.7 in both cases.

Reported by Psycopg website · April 10th, 2011 @ 02:55 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to resolved

    Hello,

    the bug has been reported a few days ago in the mailing list

    http://archives.postgresql.org/psycopg/2011-04/msg00002.php

    The problem has been fixed: the fix will be released in psycopg 2.4.1 but it's already available in my github branch.

    https://github.com/dvarrazzo/psycopg

    To work around the problem it's probably enough to define the environment variable PGCLIENTENCODING=utf8 on the client.

    April 10th, 2011 @ 09:28 PM