Skip site navigation (1) Skip section navigation (2)

Re: Data integrity and sanity check

From: "Rod Taylor" <rbt(at)zort(dot)ca>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: "Ferruccio Zamuner" <nonsolosoft(at)diff(dot)org>,<pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Data integrity and sanity check
Date: 2002-03-31 13:16:11
Message-ID: 0dd601c1d8b6$3a6acd90$8001a8c0@jester (view raw or flat)
Thread:
Lists: pgsql-hackers
There was -- kinda

alter table tab add constraint check (value not null);
--
Rod Taylor

Your eyes are weary from staring at the CRT. You feel sleepy. Notice
how restful it is to watch the cursor blink. Close your eyes. The
opinions stated above are yours. You cannot imagine why you ever felt
otherwise.

----- Original Message -----
From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Rod Taylor" <rbt(at)zort(dot)ca>
Cc: "Ferruccio Zamuner" <nonsolosoft(at)diff(dot)org>;
<pgsql-hackers(at)postgresql(dot)org>
Sent: Sunday, March 31, 2002 12:31 AM
Subject: Re: [HACKERS] Data integrity and sanity check


> > BTW.  There are good reasons sometimes for having data that
violates
> > current constraints.  The top of a tree may have a static record
with
> > a null parent.  The NOT NULL constraint added after this entry
(via
> > alter table add constraint) should not affect the static record,
so
> > unless you know your data quite well this type of tool wouldn't be
> > particularly useful anyway.
>
> As far as I am aware, there is no alter table add constraint syntax
for
> NOT NULLs atm.  I've submitted a patch that allows alter table/alter
> column set/drop not null though.
>
> Chris
>
>
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>


In response to

pgsql-hackers by date

Next:From: David WalkerDate: 2002-03-31 15:13:02
Subject: Re: How to give permission to others on data directory
Previous:From: Amit KhareDate: 2002-03-31 11:49:57
Subject: Re: How to give permission to others on data directory

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group