Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 52A969FB32C for ; Mon, 2 Oct 2006 22:27:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 30491-03 for ; Mon, 2 Oct 2006 22:27:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 0845F9FB2DB for ; Mon, 2 Oct 2006 22:27:00 -0300 (ADT) Received: from [192.168.0.59] (unknown [12.161.221.132]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by noel.decibel.org (Postfix) with ESMTP id 7688156408; Mon, 2 Oct 2006 20:26:56 -0500 (CDT) In-Reply-To: <794403F6-6CB5-4726-806C-5EF76D64C7E3@themactionfaction.com> References: <45218F90.1050303@logix-tt.com> <794403F6-6CB5-4726-806C-5EF76D64C7E3@themactionfaction.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <34B58049-42F3-468D-AA2A-AE79DC8FB244@decibel.org> Cc: PostgreSQL-development hackers Content-Transfer-Encoding: 7bit From: Jim Nasby Subject: Re: timestamptz alias Date: Mon, 2 Oct 2006 21:26:51 -0400 To: AgentM X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.229 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/101 X-Sequence-Number: 91998 On Oct 2, 2006, at 6:22 PM, AgentM wrote: > On Oct 2, 2006, at 18:15 , Markus Schaber wrote: >> I'm happy that the rather verbose "timestamp with time zone" has the >> much nicer alias "timestamptz", however it seems that this alias >> is not >> documented, neither at >> http://developer.postgresql.org/pgdocs/postgres/datatype- >> datetime.html >> nor at http://www.postgresql.org/docs/8.1/interactive/datatype- >> datetime.html >> >> I see it mentioned at >> http://www.postgresql.org/docs/8.1/interactive/datatype.html but >> that's >> possibly not where people look at first, when they search for the >> timestamp type. (At least I found it only when grepping for >> "timestamptz" in the docs. :-) >> >> Should the alias be mentioned on the datetime page? The same for >> timetz? >> What do you think? > > I am pleased that the documentation promotes database-independent > ("standard") SQL. There's a difference between promoting and withholding info. I'd rather see us explicitly state which is preferred and why. BTW, another confusing example is all the string functions that are essentially the same, such as substring and substr. (http:// www.postgresql.org/docs/8.1/interactive/functions-string.html) -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)