Re: Importing blob - Mailing list pgsql-general

From Doug McNaught
Subject Re: Importing blob
Date
Msg-id m3znvywnug.fsf@varsoon.wireboard.com
Whole thread Raw
In response to Re: Importing blob  (Patrick Nelson <pnelson@neatech.com>)
List pgsql-general
Patrick Nelson <pnelson@neatech.com> writes:

> So it is actually the server that imports the file so it has to be on the
> server.  Also, the directory (and subdirs) all have to have rx ability to
> the PostgreSQL daemon user.  The file needs min r for the PostgreSQL daemon
> user.

Yup.

> This is a bit confusing, wonder why a client wouldn't be able to insert a
> blob?

You can, but you have to call the lo_import function in the *client*
library, not the server-side function.  See the client library docs.
Yes, it's slightly confusing until you figure it out.

-Doug

pgsql-general by date:

Previous
From: Chris Bowlby
Date:
Subject: datetime function
Next
From: Gregory Seidman
Date:
Subject: transactions, serial ids, and JDBC