Default column value

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Default column value
Date: 2016-12-30 14:38:43
Message-ID: alpine.LNX.2.11.1612300636310.11546@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Reading the 9.6 docs suggests an answer to my question, but does not
explicitly answer it, so I ask here.

If a column has a default value specified does this mean the column cannot
contain a NULL value? In other words, is DEFAULT <some_value> NOT NULL
redundant?

TIA,

Rich

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-12-30 14:46:17 Re: Default column value
Previous Message Michael Sheaver 2016-12-30 13:32:07 Re: Performance PLV8 vs PLPGSQL