Re: date type changing to timestamp without time zone in postgres 9.4

Поиск
Список
Период
Сортировка
От Rishi Gokhale
Тема Re: date type changing to timestamp without time zone in postgres 9.4
Дата
Msg-id CY1PR0501MB1817D7ADB39FB1BCE6A9D698ADB60@CY1PR0501MB1817.namprd05.prod.outlook.com
обсуждение исходный текст
Ответ на Re: date type changing to timestamp without time zone in postgres 9.4  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Ответы Re: date type changing to timestamp without time zone in postgres 9.4  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Re: date type changing to timestamp without time zone in postgres 9.4  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Hey Adrian and Albe,

Thanks very much for your quick responses. I am indeed using EDB's postgres plus.

It looks like it has a function thats forcing the date type to change to a timestamp. I actually deleted that function,
butit still didn't help. 

Thanks,
Rishi

________________________________________
From: Albe Laurenz <laurenz.albe@wien.gv.at>
Sent: Monday, June 1, 2015 3:32 AM
To: 'Adrian Klaver  *EXTERN*'; Rishi Gokhale; pgsql-general@postgresql.org
Subject: RE: [GENERAL] date type changing to timestamp without time zone in postgres 9.4

Adrian Klaver wrote:
> On 05/30/2015 10:05 PM, Rishi Gokhale wrote:
>> When I create a table with a column whose type is date the type gets
>> forced to timestamp without timezone after it gets created
>>
>> ops=# CREATE TABLE test (
>> ops(#     name    varchar(40) NOT NULL,
>> ops(#     start date NOT NULL
>> ops(# );
>> CREATE TABLE
>>
>> ops=# \d test;
>>                 Table "public.test"
>>   Column |            Type             | Modifiers
>>  --------+-----------------------------+-----------
>>   name   | character varying(40)       | not null
>>   start  | timestamp without time zone | not null

>> The table creation is just a test, my original issue is while restoring
>> a backup (pg_dump/pg_restore) from another server also 9.4, where the
>> date types on numerous columns get forced to change to timestamp without
>> timezone.

> Not seeing that here:

A wild guess, since "date" in Oracle is effectively a timestamp:
Are you using EDB's Postgres Plus?

Yours,
Laurenz Albe


В списке pgsql-general по дате отправления:

Предыдущее
От: "ben.play"
Дата:
Сообщение: Re: My index doesn't write anymore but read
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: date type changing to timestamp without time zone in postgres 9.4