Re: Migration from 7.2.3 to 7.3.2 ( missing datetime data type )

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Aleksey Serba <aleksey(at)caj(dot)spb(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Migration from 7.2.3 to 7.3.2 ( missing datetime data type )
Date: 2003-03-12 15:59:16
Message-ID: 27217.1047484756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Aleksey Serba <aleksey(at)caj(dot)spb(dot)ru> writes:
> I'm trying to migrate project working with pgsql-7.2.3 to pgsql-7.3.2.
> I've found some troubles. The main is, i have type datetime almost in
> all tables from database. Thus, i've got error when trying create
> table with such date type. ( And restoring database dump failed ).
> The question is:
> What the easy way to restore database?
> How i can define alias for data type? It would be terrific!

CREATE DOMAIN datetime AS timestamp with time zone;

In the long run you should probably migrate to the SQL-standard datatype
name, but the DOMAIN trick will be useful in the meanwhile.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-03-12 16:24:43 Re: vacuum error
Previous Message Jeff Eckermann 2003-03-12 15:40:47 Re: Getting Started in Postgresql