Comment 8 for bug 1366104

Revision history for this message
Daniele Varrazzo (daniele-varrazzo) wrote : Re: OperationError when large object greater than 2gb

Because it uses a new libpq api. Specifically the new api is only available from libpq 9.3: If the package is built against libpq 9.3 and is used on a client that has an older libpq version it will fail import. More details at <https://github.com/psycopg/psycopg2/pull/259#issuecomment-55209844>. Probably your "large MAAS cluster" has verified it with its own setup but not with older libpq versions.

From the psycopg PoV the LO64 support is a new feature that will only be introduced in psycopg 2.6. IMO MAAS should install psycopg from pip or from upstream instead of using the Ubuntu one, which is painfully out of date.