X-Original-To: pgsql-admin@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 97A84921A1A for ; Sat, 24 May 2003 17:24:24 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 73628-06 for ; Sat, 24 May 2003 17:24:19 -0400 (EDT) Received: from hotmail.com (f94.law14.hotmail.com [64.4.21.94]) by developer.postgresql.org (Postfix) with ESMTP id E59AE924C9D for ; Sat, 24 May 2003 12:31:01 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 May 2003 09:31:02 -0700 Received: from 196.40.20.226 by lw14fd.law14.hotmail.msn.com with HTTP; Sat, 24 May 2003 16:31:02 GMT X-Originating-IP: [196.40.20.226] X-Originating-Email: [elarod_ad@hotmail.com] From: "eladio rodriguez" To: bsmith@h-e.com, pgsql-admin@postgresql.org Subject: Re: Changing NOT NULL condition on column Date: Sat, 24 May 2003 10:31:02 -0600 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Message-ID: X-OriginalArrivalTime: 24 May 2003 16:31:02.0487 (UTC) FILETIME=[DDA4F670:01C32211] X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/346 X-Sequence-Number: 8908 saludos. en 7.3: ALTER TABLE [ ONLY ] table [ * ] ALTER [ COLUMN ] column { SET | DROP } NOT NULL en 7.2 no funciona. tendrias que drop la columna y recrearla. >From: Bob Smith >To: pgsql-admin >Subject: [ADMIN] Changing NOT NULL condition on column >Date: Tue, 20 May 2003 16:40:34 -0700 > > >I need to change the not-null restriction on some columns in a table, and >this doesn't seem to be possible with ALTER TABLE. Is it safe to connect >as superuser and update pg_attribute.attnotnull directly? Or is there a >different way to do this, other than dropping/re-creating the whole table? > >I'm currently running 7.2.3, but will be upgrading soon so I'd like to know >if this would work with 7.3 as well. > >Thanks! > >Bob Smith >Hammett & Edison, Inc. >bsmith@h-e.com > > >---------------------------(end of broadcast)--------------------------- >TIP 4: Don't 'kill -9' the postmaster _________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/