From: | "Dann Corbit" <DCorbit(at)connx(dot)com> |
---|---|
To: | "Scott Ribe" <scott_ribe(at)killerbytes(dot)com>, "Russ Brown" <pickscrape(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: 'Official' definition of ACID compliance? |
Date: | 2006-01-06 19:23:21 |
Message-ID: | D425483C2C5C9F49B5B7A41F8944154757D3FD@postal.corporate.connx.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I think there is a reason that there is no mention at all of ACID in the
ANSI/ISO SQL standard. It is incredibly hard to achieve. Transactions
are not enough and primary + foreign keys are not enough and check
constraints are not enough. You can have all these things operating
correctly but if there is some flaw in the database model, it still
fails to maintain integrity.
And you may have a wonderful model that is 100% correct and all the
relationships defined correctly with every needed constraint in place.
And then someone comes along and truncates a table or does a bulk import
of crappy data and you have lost it.
I think that ACID is a goal that is impossible to guarantee. But we
should design with that goal in mind.
Anyway, Codd's 12 rules are a much better and far clearer definition of
relational database integrity. ACID is some sort of nebulous goal.
Codd's 12 rules are a clear definition of how to have relational
integrity.
For instance, if you fail to define a primary key for a table, you have
broken one of Codd's rules and you deserve the bad things that are going
to happen to you down the road.
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-
> owner(at)postgresql(dot)org] On Behalf Of Scott Ribe
> Sent: Friday, January 06, 2006 11:11 AM
> To: Russ Brown; pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] 'Official' definition of ACID compliance?
>
> > ACID
> > compliance requires that either all or none of the operations in the
> > transaction happen. In this case one of them does not.
>
> So maybe it's Durability that's violated in your example or Atomicity
;-)
>
> --
> Scott Ribe
> scott_ribe(at)killerbytes(dot)com
> http://www.killerbytes.com/
> (303) 665-7007 voice
>
>
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Ribe | 2006-01-06 19:29:46 | Re: 'Official' definition of ACID compliance? |
Previous Message | John McCawley | 2006-01-06 19:19:36 | Re: Reordering columns in a table |