Re: need for concrete info

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: need for concrete info
Date: 2003-10-12 04:35:20
Message-ID: m34qyfvzsn.fsf@wolfe.cbbrowne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Centuries ago, Nostradamus foresaw when andrew(at)libertyrms(dot)info (Andrew Sullivan) would write:
> On Sat, Oct 11, 2003 at 05:48:23PM -0700, Dennis Gearon wrote:
>> projects.) I want to use as my main argument, the fact (at this time,
>> only from my previous usage), that MySQL really doesn't have foreign
>> keys or record locking, and Postgres does.
>
> Define "really". Certainly, for some cases, it now does.
>
>> correct with today's MySQL vs. PostgreSQL, right? I *really* want to use
>> PostgreSQL for this project and not MySQL as I want to avoid growing
>> pains trying to get MySQL to do the job of a bigger DB down the road.
>
> Why don't you make the "growing pains" argument instead? What are
> those arguments, anyway? ( I think I know, but maybe not.)

I would think that the 'non-validation of domain information' part
would be an even better argument.

It's easy to explain, which is vital.

You can give examples: "If we try to insert such-and-such data, which
happens to be wrong, MySQL will silently insert _different_ wrong
information, and not complain at all."

In contrast, they can put all sorts of extra validation tests on
domains in PostgreSQL, and it can quietly _prevent_ application bugs
from corrupting data. That doesn't mean that _every_ sort of
corruption is prevented, but there can be some meaningful ones.

For instance, if a particular column is required to be in lower case,
then a domain constraint to that effect means that if someone makes an
application mistake, the database will catch it. Sort of like wearing
a belt _and_ suspenders.
--
(format nil "~S(at)~S" "aa454" "freenet.carleton.ca")
http://www3.sympatico.ca/cbbrowne/advocacy.html
If at first you don't succeed, try duct tape. If duct tape doesn't
work, give up.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-10-12 05:21:22 Re: more on undefined reference to 'pg_detoast_datum' and libpq
Previous Message Network Administrator 2003-10-12 04:34:07 Re: need for concrete info