Re: Timestamp Datatype Changing automatically to Timestamp without time zone

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rajdeep Das <sendrajster(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Timestamp Datatype Changing automatically to Timestamp without time zone
Date: 2009-06-30 14:29:20
Message-ID: 17391.1246372160@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Rajdeep Das <sendrajster(at)gmail(dot)com> writes:
> I have taken a dump of my database from the old version of pg viz.8.1, using
> pg_dump command. In the db I have a table with a column of datatype
> 'timestamp'. Now, when I try to restore it on the new pg version 8.3, the
> datatype of the column is getting altered to 'timestamp with no time zone'.

Those are the same type.

> This change is causing my SQL to fail as TO_TIMESTAMP function is reporting
> error.

This is not what's causing your problem. But since you gave no details,
we can't guess what your problem actually is.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Isabella Ghiurea 2009-06-30 14:38:17 configure PG clients for DNS
Previous Message Milen A. Radev 2009-06-30 12:41:30 Re: Application Transaction Question... Postgres 8.3.6 - PHP 5 - Solaris 10