Re: Reading from a read-only BLOB is allowed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gonzalo Paniagua Javier <gonzalo(at)gnome-db(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Reading from a read-only BLOB is allowed
Date: 2003-08-17 05:22:06
Message-ID: 9198.1061097726@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Gonzalo Paniagua Javier <gonzalo(at)gnome-db(dot)org> writes:
> It seems that postgres allows writing to a read-only blob opened like:
> fd = lo_open (cnc, oid, INV_READ);

AFAICS from the code, INV_READ/WRITE attached to lo_open only determine
the kind of lock taken on the LO (shared or exclusive). Not sure
whether it's a bug to prohibit the other kind of access or not.

Note that there's no "security" issue here, since anyone is allowed to
write any LO anyway.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2003-08-17 05:28:05 Re: ALTER SCHEMA problem
Previous Message Bruce Momjian 2003-08-17 05:09:13 Re: small bug in op + between datetime and integer