Re: timestamptz alias - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: timestamptz alias
Date
Msg-id 34B58049-42F3-468D-AA2A-AE79DC8FB244@decibel.org
Whole thread Raw
In response to Re: timestamptz alias  (AgentM <agentm@themactionfaction.com>)
Responses Re: timestamptz alias  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-hackers
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)




pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: NULL and plpgsql rows
Next
From: Jim Nasby
Date:
Subject: Re: Patch: Tie stats options to autovacuum in