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.

Use lo_creat() when possible instead of lo_create()

#88

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.

Reported by giomasce · January 9th, 2012 @ 10:34 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo

    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.

    January 10th, 2012 @ 12:47 AM

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

    Patch merged, thanks.

    January 10th, 2012 @ 09:58 PM