Datetime type dropped from v7.3 ?

Started by Steve Howeabout 24 years ago3 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us
In reply to: Steve Howe (#2)
Re: Datetime type dropped from v7.3 ?

Steve Howe <howe@carcass.dhs.org> writes:

Just wondering if the datetime type was dropped on purpose from
PostgreSQL 7.3 ?

Yes. Ad-hoc name translations in the parser create bogosities with
respect to schemas --- I forget the details, but it was either drop
"datetime" or make it a reserved keyword. Since datetime has been
deprecated for a couple releases now, the choice seemed clear.

regards, tom lane

#2Steve Howe
howe@carcass.dhs.org

Hello all,

Just wondering if the datetime type was dropped on purpose from
PostgreSQL 7.3 ?
This is not an issue of course, I'll be using timestamp, but it's
weird having that dropped.

-------------------------------
-- On PostgreSQL 7.2:
-------------------------------
howe=# select version();
version
-----------------------------------------------------------------------
PostgreSQL 7.2.1 on i386-portbld-freebsd4.6.2, compiled by GCC 2.95.3
(1 row)

howe=# create table a(b datetime);
CREATE
howe=# \d a
Table "a"
Column | Type | Modifiers
--------+-----------------------------+-----------
b | timestamp without time zone |

-------------------------------
-- On PostgreSQL 7.3:
-------------------------------
howe=# select version ();
version
---------------------------------------------------------------------
PostgreSQL 7.3b3 on i386-unknown-freebsd4.4, compiled by GCC 2.95.3
(1 row)

howe=# create table a(b datetime);
ERROR: Type "datetime" does not exist

-------------
Best regards,
Steve Howe mailto:howe@carcass.dhs.org

#3Steve Howe
howe@carcass.dhs.org
In reply to: Tom Lane (#1)
Re: Datetime type dropped from v7.3 ?

Hello Tom,

Thursday, November 7, 2002, 1:17:00 AM, you wrote:

TL> Steve Howe <howe@carcass.dhs.org> writes:

Just wondering if the datetime type was dropped on purpose from
PostgreSQL 7.3 ?

TL> Yes. Ad-hoc name translations in the parser create bogosities with
TL> respect to schemas --- I forget the details, but it was either drop
TL> "datetime" or make it a reserved keyword. Since datetime has been
TL> deprecated for a couple releases now, the choice seemed clear.
Oh. ok. I'm glad it was intended.
Thanks :)

-------------
Best regards,
Steve Howe mailto:howe@carcass.dhs.org