Re: removing a restriction - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: removing a restriction
Date
Msg-id 465E261A.3050209@commandprompt.com
Whole thread Raw
In response to Re: removing a restriction  (Tom Allison <tom@tacocat.net>)
List pgsql-general
Tom Allison wrote:
> alter TABLE user_history ALTER COLUMN seen_as set not null;
>
> turns it on...
> I want to turn it off....

DROP NOT NULL;

>
> On May 30, 2007, at 9:05 PM, Joshua D. Drake wrote:
>
>>
>> Tom Allison wrote:
>>> I have a column that was created with a 'not null' restriction.
>>> How do I remove it?
>>
>> alter table set
>>
>>> ---------------------------(end of broadcast)---------------------------
>>> TIP 4: Have you searched our list archives?
>>>               http://archives.postgresql.org/
>>
>>
>> --
>>       === The PostgreSQL Company: Command Prompt, Inc. ===
>> Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
>> Providing the most comprehensive  PostgreSQL solutions since 1997
>>              http://www.commandprompt.com/
>>
>> Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
>> PostgreSQL Replication: http://www.commandprompt.com/products/
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 5: don't forget to increase your free space map settings
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>


--

       === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
              http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


pgsql-general by date:

Previous
From: Tom Allison
Date:
Subject: Re: removing a restriction
Next
From: Greg Smith
Date:
Subject: PITR Base Backup on an idle 8.1 server