Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Comment on

I'm not sure what you're suggesting. Is it:
my $value = "111"; $dbh->do("insert into foo(id, test) values (8, ?)", undef, $value);
Certainly that will allow an insert, but then 111 becomes the value of the column, not an OID. Exporting it therefore doesn't work:
foobar=> select lo_export('test', '/tmp/x') from foo where id=8; ERROR: pg_atoi: error in "test": can't parse "test"
If the OID is a valid number, I imagine it will work, but then I still have to insert the data and get an OID, which puts me back to using lo_import. Or did I misunderstand your suggestion?

In reply to RE: Re: Difficulty inserting a large object using DBD::Pg (kudra: int->OID possible, but doesn't fix ) by kudra
in thread Difficulty inserting a large object using DBD::Pg by kudra

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (5)
    As of 2014-07-14 02:06 GMT
    Find Nodes?
      Voting Booth?

      When choosing user names for websites, I prefer to use:

      Results (254 votes), past polls