Re: Changing ids conflicting with serial values? - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Changing ids conflicting with serial values?
Date
Msg-id m2y846e6k7.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Re: Changing ids conflicting with serial values?  (Steven Brown <swbrown@ucsd.edu>)
List pgsql-general
Steven Brown <swbrown@ucsd.edu> writes:

> I'm granting access to insert/update/delete rows of a table to people,
> but I don't want all future inserts to fail if they decided to change
> an id (which they obviously shouldn't, but they /can/).  It makes for
> a fragile system.

If it shouldn't happen, you should enforce that with a trigger.  Easy
enough to do.

But giving access to an SQL prompt to people who don't know why you
shouldn't change a PK ID scares me.  :)

-Doug

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Changing ids conflicting with serial values?
Next
From: Tony Caduto
Date:
Subject: Built in function question