Re: DBD::Pg`s $dbh->func( "/path/to/file", `lo_import` ) fails silently
От | Kynn Jones |
---|---|
Тема | Re: DBD::Pg`s $dbh->func( "/path/to/file", `lo_import` ) fails silently |
Дата | |
Msg-id | c2350ba40903191205s2076a3b2n7785e3e852b75955@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: DBD::Pg`s $dbh->func( "/path/to/file", `lo_import` ) fails silently ("Greg Sabino Mullane" <greg@turnstep.com>) |
Ответы |
Re: DBD::Pg's $dbh->func( "/path/to/file", 'lo_import' ) fails silently
|
Список | pgsql-general |
On Wed, Mar 18, 2009 at 3:57 PM, Greg Sabino Mullane <greg@turnstep.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
> I'm trying to use Perl's DBD::Pg module to import a file as a large object.
> For this I'm using the following:
> my $oid = $dbh->func( "/absolute/path/to/file", 'lo_import' );
Works fine for me. What version of DBD::Pg are you using? Try something
recent if you are using something old. You can also set the trace
level to see what's going on behind the scenes:
$dbh->trace(10)
Actually, after much trial and error I figured out the problem: the handle I was using had AutoCommit set. I'm new to the lo_* functions, and not aware of this issue. A mention of this in the DBD::Pg docs would be very helpful to LO noobs like me.
Cheers,
Kynn
В списке pgsql-general по дате отправления: