Received: from srv.ctlno.com (216-175-179-80.client.dsl.net [216.175.179.80]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA09690; Wed, 3 May 2000 12:19:38 -0400 (EDT) (envelope-from matt@ctlno.com) Received: by SRV with Internet Mail Service (5.5.1960.3) id <2H2GKDWD>; Wed, 3 May 2000 11:17:31 -0500 Message-ID: <183FA749499ED311B6550000F87E206C0C9163@SRV> From: Matthew To: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: Removing NOT NULL Contraint Date: Wed, 3 May 2000 11:17:24 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain X-Archive-Number: 200005/17 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