This project is archived and is in readonly mode.
Use lo_creat() when possible instead of lo_create()
Reported by giomasce | January 9th, 2012 @ 10:34 PM
Hi.
I'm using psycopg2 against a PostgreSQL database replicated using pgpool-II. On this database I also need large objects support. Apparently pgpool-II is able to correctly handle lo_creat() calls, but not lo_create() (see http://pgpool.projects.postgresql.org/pgpool-II/doc/pgpool-en.html#... ).
Unfortunately, psycopg2 only create large objects with lo_create(), even when no new_oid is specified. Could you please consider applying the attached patch, that modifies this behaviour?
Thanks, Giovanni.
Comments and changes to this ticket
-
Daniele Varrazzo January 10th, 2012 @ 12:47 AM
Hi Giovanni,
would you mind raising the question to the mailing list? It will get a much wider attention, including pgpool developers and people who know better the distinction between the two functions (which is not me). Here at best it will be seen by 2 people.
-
Daniele Varrazzo January 10th, 2012 @ 09:58 PM
- State changed from new to resolved
Patch merged, thanks.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.