Re: alter column type (from timestamp to date) violates not null

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: psmith <suller(dot)andras(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: alter column type (from timestamp to date) violates not null
Date: 2007-03-10 17:30:08
Message-ID: 17015.1173547808@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Fuhr <mike(at)fuhr(dot)org> writes:
> On Fri, Mar 09, 2007 at 04:55:59AM -0800, psmith wrote:
>> When change a column type from timestamp to date, the 'infinity' and '-
>> infinity' values will be NULL. Even if the column has a not null
>> constraint.

> This appears to be fixed already:

http://archives.postgresql.org/pgsql-bugs/2006-07/msg00015.php
http://archives.postgresql.org/pgsql-committers/2006-07/msg00067.php

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Randy Isbell (jisbell) 2007-03-10 19:00:24 BUG #3110: Online Backup introduces Duplicate OIDs
Previous Message Michael Fuhr 2007-03-10 15:56:05 Re: alter column type (from timestamp to date) violates not null