Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 735582E0040 for ; Tue, 15 Jan 2008 15:42:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 61294-08 for ; Tue, 15 Jan 2008 15:42:39 -0400 (AST) Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by postgresql.org (Postfix) with ESMTP id D1A0C2E0051 for ; Tue, 15 Jan 2008 15:42:38 -0400 (AST) X-PMWin-Version: 2.6.1, Antivirus-Engine: 2.50.6 thread-index: AchXrsee68XvfTE+QF+mSGdwssgkGw== Received: from [172.31.1.5] ([172.31.1.5]) by obelix.askesis.nl with Microsoft SMTPSVC(5.0.2195.6713); Tue, 15 Jan 2008 20:42:36 +0100 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Subject: Re: Is DATETIME an ANSI-SQL type? From: "Joost Kraaijeveld" To: "Tom Lane" Cc: =?iso-8859-1?Q?Magne_M=E6hre?= , In-Reply-To: <24168.1200412412@sss.pgh.pa.us> References: <1200403108.27286.63.camel@panoramix.askesis.nl> <478CB8FB.5040600@sun.com> <24168.1200412412@sss.pgh.pa.us> Content-Type: text/plain; charset="iso-8859-1" Date: Tue, 15 Jan 2008 20:42:31 +0100 Message-ID: <1200426151.19198.1.camel@localhost> MIME-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Jan 2008 19:42:36.0236 (UTC) FILETIME=[C775A0C0:01C857AE] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/133 X-Sequence-Number: 29986 Hi, On Tue, 2008-01-15 at 10:53 -0500, Tom Lane wrote: > =?ISO-8859-1?Q?Magne_M=E6hre?= writes: > > Joost Kraaijeveld wrote: > >> Can anyone tell me if DATETIME is an ANSI SQL type? > > > No. > > The Datetime types defined in SQL (ISO/IEC 9075:2003) are > > > DATE > > TIME WITHOUT TIME ZONE > > TIME WITH TIME ZONE > > TIMESTAMP WITHOUT TIME ZONE > > TIMESTAMP WITH TIME ZONE > > If you need to port from a system that used DATETIME as a type name, > consider defining DATETIME as a domain over whichever of the standard > types seems to have the closest semantics (likely the last of these). Thanks for the confirmation and tips. -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl