lo_import()

From: Aaron Steele <cursingblinker(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: lo_import()
Date: 2005-11-14 20:28:49
Message-ID: 1895a2cb0511141228i4d51b4d9p883bc30df7dff895@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,

i would like to use lo_import() on the client side to insert images into
postgresql version 8.0.1 on a remote server using psql as follows:

psql -h my.db.host.com <http://my.db.host.com> -U user -c "insert into
binblob (binary_blob) values(lo_import('/path/on/client/machine/ks.jpg'))"
-d mydb

i'm getting the following error:

ERROR: must be superuser to use server-side lo_import()
HINT: Anyone can use the client-side lo_import() provided by libpq.

isn't the above command the client-side lo_import()? thoughts?

thanks,
cb

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2005-11-14 20:52:46 8.1 beta3 initdb required?
Previous Message Jaime Casanova 2005-11-14 20:07:30 Re: Queries causing highest I/O load since pg_stat_reset?