can't create timestamp field (only timestamp with time zone) - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject can't create timestamp field (only timestamp with time zone)
Date
Msg-id 200107070131.f671VUU09116@hub.org
Whole thread Raw
Responses Re: can't create timestamp field (only timestamp with time zone)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
Dave E Martin (xxiii@cyberdude.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
can't create timestamp field (only timestamp with time zone)

Long Description
7.1.2 on debian

It appears to be impossible to create a field with the "timestamp" data type. only the "timestamp with time zone" type.

the "time" type seems to work correctly, but not "timestamp".

Sample Code
All of these:

create table x (m timestamp, o timestamp without time zone);
create table x (m datetime, o timestamp without time zone);
create table x (m timestamp with time zone, o timestamp without time zone);

result in:

radacct=# \d x
                    Table "x"
 Attribute |           Type           | Modifier
-----------+--------------------------+----------
 m         | timestamp with time zone |
 o         | timestamp with time zone |

This however:
create table x (m time, o time without time zone, w time with time zone);

seems to work:
radacct=# \d x
                 Table "x"
 Attribute |        Type         | Modifier
-----------+---------------------+----------
 m         | time                |
 o         | time                |
 w         | time with time zone |


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Perl DBI Module fails to install correctly from RPM
Next
From: Justin Clift
Date:
Subject: Re: Postmaster 7.1.2 hanging