Removing NOT NULL Contraint - Mailing list pgsql-admin

From Matthew
Subject Removing NOT NULL Contraint
Date
Msg-id 183FA749499ED311B6550000F87E206C0C9163@SRV
Whole thread Raw
List pgsql-admin
I may be missing something simple here, but I have an attribute in a
table that was created as NOT NULL.  I now need to remove this
constraint.  I don't see a proper way to do this.  I think I can update
the pg_attribute table and change attnotnull from true to false.  Is
this an acceptable solution or is there a good reason that I should not
directly edit the system tables?

Maybe I'm missing something but I didn't see another way to do it other
then creating a new table, selecting into it and dropping the old table,
which seems like a lot of work for something so simple.

Thanks,

Matt

pgsql-admin by date:

Previous
From: bangh
Date:
Subject: Re: backup of my database...
Next
From: Todd Turner
Date:
Subject: database copy and move