pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedfrom not null field to nullable field?
2+ messages / 2 participants
[nested] [flat]
* from not null field to nullable field?
@ 2000-07-20 06:13 Carolyn Lu Wong <carolyn@kss.net.au>
0 siblings, 1 reply; 2+ messages in thread
From: Carolyn Lu Wong @ 2000-07-20 06:13 UTC (permalink / raw)
To: pgsql-sql
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'.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: from not null field to nullable field?
@ 2000-07-20 07:55 Wim Ceulemans <Wim.Ceulemans@nice.be>
parent: Carolyn Lu Wong <carolyn@kss.net.au>
0 siblings, 0 replies; 2+ messages in thread
From: Wim Ceulemans @ 2000-07-20 07:55 UTC (permalink / raw)
To: Carolyn Lu Wong <carolyn@kss.net.au>; +Cc: pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-07-20 07:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-07-20 06:13 from not null field to nullable field? Carolyn Lu Wong <carolyn@kss.net.au>
2000-07-20 07:55 ` Wim Ceulemans <Wim.Ceulemans@nice.be>
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