Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: time_stamp ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 9635 of 11009
Post > Topic >>

Re: time_stamp type

by tgl@[EMAIL PROTECTED] (Tom Lane) Jul 6, 2008 at 01:19 AM

"Stephen R. van den Berg" <srb@[EMAIL PROTECTED]
> writes:
> What's the deal with this type?

It's a domain over timestamptz, as required by the SQL spec definition
of the information_schema.

postgres=# \dD information_schema.time_stamp
                                                      List of domains
       Schema       |    Name    |            Type             |          
           Modifier                      | Check 
--------------------+------------+-----------------------------+----------------------------------------------------+-------
 information_schema | time_stamp | timestamp(2) with time zone | default
('now'::text)::timestamp(2) with time zone | 
(1 row)

[ re-reads spec... ]  Hm, actually the spec is self-contradictory here:
SQL99 20.7 saith

         CREATE DOMAIN TIME_STAMP AS TIMESTAMP (2)
             DEFAULT CURRENT_TIMESTAMP(2);

which appears to imply that TIME_STAMP is a domain over timestamp
*without* time zone ... but that is contradicted by the specification
that the default is CURRENT_TIMESTAMP, which yields a value *with*
time zone.  (LOCALTIMESTAMP is the function that should have been
mentioned if they really meant without time zone.)

[ pokes further... ]  Hmm, last year's SQL200n draft saith

	CREATE DOMAIN TIME_STAMP AS TIMESTAMP(2) WITH TIME ZONE;

with no mention of a default.  I do wish these people could make
up their minds.

			regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 2 Posts in Topic:
time_stamp type
srb@[EMAIL PROTECTED] (&  2008-07-05 18:34:54 
Re: time_stamp type
tgl@[EMAIL PROTECTED] (T  2008-07-06 01:19:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 8:51:40 CST 2008.