Thread: can't create timestamp field (only timestamp with time zone)

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

From
pgsql-bugs@postgresql.org
Date:
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

Re: can't create timestamp field (only timestamp with time zone)

From
Peter Eisentraut
Date:
> can't create timestamp field (only timestamp with time zone)

Those are the same data types.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter