Re: Disappearing Records - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Disappearing Records
Date
Msg-id m23bmff78i.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Re: Disappearing Records  (Rory Browne <rory.browne@gmail.com>)
List pgsql-general
Rory Browne <rory.browne@gmail.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.  :)

-Doug

pgsql-general by date:

Previous
From: Ian Harding
Date:
Subject: Re: Oracle 10g Express - any danger for Postgres?
Next
From: Hugo
Date:
Subject: Postgres + CentOS