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

From Tom Lane
Subject Re: SET NULL / SET NOT NULL
Date
Msg-id 13279.1014346567@sss.pgh.pa.us
Whole thread Raw
In response to Re: SET NULL / SET NOT NULL  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: SET NULL / SET NOT NULL  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
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?)
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: In case anyone is intereated ... mail traffic today ...
Next
From: Bruce Momjian
Date:
Subject: Re: SET NULL / SET NOT NULL