Re: [PATCH] Re: [pgsql-advocacy] 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: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?
Date: 2003-12-01 23:17:16
Message-ID: 28212.1070320636@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers pgsql-patches

Sean Chittenden <sean(at)chittenden(dot)org> writes:
> http://archives.postgresql.org/pgsql-patches/2003-07/msg00204.php
> Sure sounds like you said READ ONLY xacts can't be used for security. :)

Better read it again then.

> I think Tom's big objection is the abuse of the GUC system for
> maintaining this information.

Check.

> Having thought about this some, I think
> the GUC system is pretty well suited for this and that Tom's objection
> (correct me if I'm wrong here) is that GUC has a non-hierarchical
> naming structure/convention.

Not in the least. My objection to using GUC for this is that it's not
designed to be non-subvertible; rather it's designed to allow settings
to come from nearly anywhere. To get around that, you have to kluge it
horribly. Poster child, once again, the cruft Bruce put into the
logging settings --- not only is that ugly, but I have very little
confidence that it doesn't still have holes. Complexity is not a virtue
in security-related code; and any security expert will tell you that
having the same code serving both security- and non-security-related
goals is a recipe for disaster. It's too easy to break security while
you are fooling with something you think is unrelated.

regards, tom lane

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Sean Chittenden 2003-12-02 00:15:39 Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?
Previous Message Bruce Momjian 2003-12-01 23:10:46 Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 23:19:57 Re: [CORE] Commit privs
Previous Message Bruce Momjian 2003-12-01 23:15:22 Re: [HACKERS] initdb mkdir_p() doesn't work

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 23:17:53 Re: introduce "default_use_oids"
Previous Message Bruce Momjian 2003-12-01 23:15:22 Re: [HACKERS] initdb mkdir_p() doesn't work