From: Wim Ceulemans <Wim.Ceulemans@nice.be>
To: Carolyn Lu Wong <carolyn@kss.net.au>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: from not null field to nullable field?
Date: Thu, 20 Jul 2000 09:55:45 +0200
Message-ID: <3976B081.3AC847A4@nice.be> (raw)
References: <39769880.85E7D796@kss.net.au>
Carolyn Lu Wong wrote:
>
> I have a field in a table that has been defined 'not null'. Is it
> possible to remove this constraint? I don't see this option under 'alter
> table'.
update pg_attribute set attnotnull = 'f' where oid = oidofnotnullcolumn;
vacuum analyze;
Regards
Wim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: Wim.Ceulemans@nice.be, carolyn@kss.net.au
Subject: Re: from not null field to nullable field?
In-Reply-To: <3976B081.3AC847A4@nice.be>
References: <39769880.85E7D796@kss.net.au> <3976B081.3AC847A4@nice.be>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox