Re: Problems to be solved as soon as possible

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>
Cc: The Guardian <theguardian(at)vsnl(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Problems to be solved as soon as possible
Date: 2003-09-29 19:12:14
Message-ID: 27579.1064862734@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tomasz Myrta <jasiek(at)klaster(dot)net> writes:
>> datatypes like DateTime. When i run those scripts in PostgreSQL of Red hat
>> Linux 7.2, they run perfectly. But when i run the same scrips in PostgreSQL
>> of Redhat Linux 9.0, it displays an error message of "data type DATETIME not
>> found."

> It looks like Postgresql problem, not a Redhat problem. Probably
> datetime is some not longer supported datatype.

Yes, "datetime" is an ancient name for what we now call by the
SQL-standard name "timestamp with time zone".

If changing to the standard name makes for too many changes in your
application code, you could use a domain as a kind of type alias:

create domain datetime as timestamp with time zone;

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2003-09-29 19:20:20 Re: Problems to be solved as soon as possible
Previous Message greg 2003-09-29 18:45:20 Re: Is there something wrong with Perl`s dbi and PostgreSQL?