Re: SET NULL / SET NOT NULL - Mailing list pgsql-hackers

From Fernando Nasser
Subject Re: SET NULL / SET NOT NULL
Date
Msg-id 3C9B61BB.B9461647@redhat.com
Whole thread Raw
In response to Re: SET NULL / SET NOT NULL  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
Zeugswetter Andreas SB SD wrote:
> 
> Imho it would be nice if the command would look exactly like a create
> table. It is simply convenient to use cut and paste :-) And I haven't
> seen a keyword yet, that would make it more descriptive, certainly not SET.
> 
> ALTER TABLE blah ALTER [COLUMN] col [int4] [NOT NULL] [DEFAULT 32];
> ALTER TABLE blah ALTER [COLUMN] col [int8] [NULL] [DEFAULT 32];
> maybe even [DEFAULT NULL] to drop the default :-)
> 

I like this one.  I would not make COLUMN optional though.

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


pgsql-hackers by date:

Previous
From: Greg Copeland
Date:
Subject: Re: Fw: Fw: bad performance on irix
Next
From: Tom Lane
Date:
Subject: Re: pg_control contents