Re: [GENERAL] Not null contraints

2000-10-13 Thread Tom Lane
Philip Warner <[EMAIL PROTECTED]> writes: > 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

Re: [GENERAL] Not null contraints

2000-10-13 Thread Philip Warner
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 confi

Re: [GENERAL] Not null contraints

2000-10-13 Thread Tom Lane
"Tamsin" <[EMAIL PROTECTED]> writes: > I want to remove a not null constraint from a table. I've read the posts > about having to rename, recreate without not nulls & insert back into the > table. This is fine, but the table also has a lot of foreign keys/rules etc > & recreating all these is a