import_bytea function

From: Stephen Davies <sdavies(at)sdc(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: import_bytea function
Date: 2016-10-07 07:12:06
Message-ID: 98a13456-619a-1e43-4f81-59a59591674b@sdc.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to use the import_bytea function described in various list posts
(PG version 9.3.14) in a jsp.

I get an error saying that only the super user can use server-side lo_import().

If I change the Java connection to use user postgres, the function works but I
would prefer not to do this.

Is there a better way to update a bytea column from an uploaded file (in this
case a small jpeg)?

Cheers and thanks,
Stephen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2016-10-07 08:18:03 Re: import_bytea function
Previous Message John R Pierce 2016-10-07 05:32:13 Re: postgresql-8.1.18-2.1 information