Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] [PATCH] Re: Why READ ONLY transactions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sean Chittenden <sean(at)chittenden(dot)org>
Cc: Christopher Browne <cbbrowne(at)libertyrms(dot)info>,pgsql-patches(at)postgresql(dot)org,Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>,Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, pgsql-advocacy(at)postgresql(dot)org
Subject: Re: [PATCHES] [PATCH] Re: Why READ ONLY transactions?
Date: 2003-07-30 15:31:55
Message-ID: 10760.1059579115@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-advocacypgsql-hackerspgsql-patches
Sean Chittenden <sean(at)chittenden(dot)org> writes:
>> I would NOT call it a "security" provision, as it is fairly easily
>> defeated using SET TRANSACTION.

> Um, why not make it an actual full blown security feature by applying
> the following patch?

It's not intended to be a security measure, and I would strongly resist
any attempt to make it so along the lines you propose.  I do not want to
try to base real security on GUC settings.  The GUC mechanism is not
designed to be unsubvertible, it's designed to allow convenient
administration of a bunch of settings.

In any case, we already have mechanisms for preventing specific users
from altering data: that's what GRANT/REVOKE are for.  I don't think
anyone would have bothered with START TRANSACTION READ ONLY if it
weren't required by the SQL spec.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2003-07-30 16:19:15
Subject: psql no longer handles fatal/panic errors well
Previous:From: Josh BerkusDate: 2003-07-30 15:27:47
Subject: Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?

pgsql-patches by date

Next:From: NicDate: 2003-07-30 15:40:55
Subject: Re: JDBC stored procs doc patch
Previous:From: Josh BerkusDate: 2003-07-30 15:27:47
Subject: Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?

pgsql-advocacy by date

Next:From: Josh BerkusDate: 2003-07-30 15:34:16
Subject: Re: What I would say if someone asked me about no win32
Previous:From: Josh BerkusDate: 2003-07-30 15:27:47
Subject: Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group