Re: Not null contraints

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Tamsin" <tg_mail(at)bryncadfan(dot)co(dot)uk>
Cc: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Not null contraints
Date: 2000-10-14 06:20:40
Message-ID: 3.0.5.32.20001014162040.02a41430@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 00:26 14/10/00 -0400, Tom Lane wrote:
>> I tried updating pg_attribute & setting attnotnull to 'f' for the field in
>> question. This seems to have worked. Is it safe?! - is there anything
else
>> I should be aware of?
>
>Yup, that should do the trick. Not much magic here...
>

Just to confirm - does this mean we have ALTER TABLE ADD CONSTRAINT, but
not ALTER TABLE DROP CONSTRAINT. If so, should it go on a list somewhere?

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Warren Flemmer 2000-10-14 10:23:11 Postgresql 7 does not always start on RH 6.2
Previous Message Philip Warner 2000-10-14 06:18:39 Re: Question about pg_dump