From: Richard Huxton <dev@archonet.com>
To: David <cyberguard@sympatico.ca>
To: pgsql-sql@postgresql.org
Subject: Re: Deleting large object from table pg_largeobject
Date: Fri, 14 Mar 2003 11:02:50 +0000
Message-ID: <200303141102.50176.dev@archonet.com> (raw)
In-Reply-To: <1047502777.1661.553.camel@localhost.localdomain>
References: <1047502777.1661.553.camel@localhost.localdomain>
On Wednesday 12 Mar 2003 8:59 pm, David wrote:
> Hello,
>
> I'm trying to delete a large object form the pg_largeobject table but I
> get a permission denied error (in both psql and with the java JDBC ).
>
> Here is my sql stament in order:
>
> fletcher=> SELECT * from md_blob ;
> blob_id | text | file_name | mime_type
> ---------+--------+-----------+------------
> 4 | 292470 | 2.jpg | image/jpeg
> 21 | 292572 | 2.jpg | image/jpeg
> 22 | 292578 | 2.jpg | image/jpeg
> (3 rows)
>
> == If I try to delete it directly
> fletcher=> delete from pg_largeobject where loid = (
> select text from md_blob
> where blob_id = 4 );
>
> ERROR: pg_largeobject: permission denied
Should you not be using the special large-object methods?
I don't use Java, but there's a class mentioned in the manual : Client
Interfaces : JDBC : extensions.
With psql you probably want \lo_unlink
HTH
--
Richard Huxton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, cyberguard@sympatico.ca
Subject: Re: Deleting large object from table pg_largeobject
In-Reply-To: <200303141102.50176.dev@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox