Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group