Re: automatic time zone conversion

From: Ken Williams <ken(at)mathforum(dot)org>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: automatic time zone conversion
Date: 2002-06-12 07:12:56
Message-ID: D1E1EB43-7DD3-11D6-BD3A-0003936C1626@mathforum.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wednesday, June 12, 2002, at 04:58 PM, Martijn van Oosterhout wrote:

> On Wed, Jun 12, 2002 at 04:41:53PM +1000, Ken Williams wrote:
>> Hi,
>>
>> I'm trying to import some data into a table with a column
>> defined as "timestamp not null". When I defined the table,
>> postgres seemed to automatically convert the column to
>> "timestamp with time zone not null", and I can't figure out how
>> to get rid of the time zone information.
>
> I guess you could alter the schema so the type was "timestamp
> without time
> zone" (IIRC).

Yeah, but watch this:

==============================================================
announce=# create table test (x timestamp without time zone);
CREATE
announce=# \d test
Table "test"
Attribute | Type | Modifier
-----------+--------------------------+----------
x | timestamp with time zone |

==============================================================

I don't seem to be able to get rid of the time zone any of the
ways I've tried.

-Ken

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Terence Leung 2002-06-12 07:50:23 how to auto start "postmaster"?
Previous Message Martijn van Oosterhout 2002-06-12 06:58:29 Re: automatic time zone conversion