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

From Bruce Momjian
Subject Re: SET NULL / SET NOT NULL
Date
Msg-id 200202220302.g1M324905891@candle.pha.pa.us
Whole thread Raw
In response to Re: SET NULL / SET NOT NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Using the standard precedent above, how about
> 
> > ALTER TABLE blah ALTER COLUMN col SET NOT NULL;
> > ALTER TABLE blah ALTER COLUMN col DROP NOT NULL;
> 
> This seems like a good choice if we are not too concerned about
> compatibility with other DBMSes.  (Which, for something like this,
> I'm not; how many applications will be issuing programmed commands
> like this?)

Yes, I like this too;  the SET/DROP symetry.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SET NULL / SET NOT NULL
Next
From: Tom Lane
Date:
Subject: Re: Are stored procedures pre-compiled?