Re: Question about NOT NULL and default values. - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Question about NOT NULL and default values.
Date
Msg-id 20081016205456.X48826@megazone.bigpanda.com
Whole thread Raw
In response to Question about NOT NULL and default values.  ("Tim Uckun" <timuckun@gmail.com>)
Responses Re: Question about NOT NULL and default values.  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
On Fri, 17 Oct 2008, Tim Uckun wrote:

> Is there a way to change this behavior so that an attempt to set the
> column to NULL will result in the default value being put in the
> field?

I don't think so specifically with default, but you could use a before
trigger instead that would put in a value in the new row if NULL was
given.

pgsql-general by date:

Previous
From: "Tim Uckun"
Date:
Subject: Re: Question about NOT NULL and default values.
Next
From: Tom Lane
Date:
Subject: Re: Question about fulltext search and to_tsvector function