Re: Disappearing Records

From: Harald Fuchs <hf0923x(at)protecting(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Disappearing Records
Date: 2005-11-02 16:39:33
Message-ID: 87d5ljm2be.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <m23bmff78i(dot)fsf(at)Douglas-McNaughts-Powerbook(dot)local>,
Douglas McNaught <doug(at)mcnaught(dot)org> writes:

> Rory Browne <rory(dot)browne(at)gmail(dot)com> writes:
>> select u.username, g.groupname from users u, groups g where u.group_id=g.id
>> (assuming users are in exactly one group)
>>
>> If the group_id field in the users table was corrupted, and set to a
>> value that isn't in the groups table, then that view wouldn't return
>> anything.

> That's why foreign key constraints are good. :)

Well, Rory already confessed that he came from a MySQL background :-)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jon Lapham 2005-11-02 16:49:57 Re: md5 hash on table row
Previous Message Michael Fuhr 2005-11-02 16:35:33 Re: md5 hash on table row