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 > Proposal: tem**...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 9417 of 10965
Post > Topic >>

Proposal: tem****al extension "period" data type

by pgsql@[EMAIL PROTECTED] (Jeff Davis) May 26, 2008 at 12:02 AM

I maintain the project "Tem****al PostgreSQL" on pgfoundry:

http://pgfoundry.org/projects/tem****al

Reference docs available here:
http://tem****al.projects.postgresql.org/reference.html

This project provides a data type called "period" (formerly t_interval).
This type is an interval in the mathematical sense, that is, it has a
beginning time and end time (timestamptz, to be specific). This is not
like the SQL type "interval" which is not anchored at any specific point
in time.

This is valuable for many applications that need to be able to
manipulate time. This functionality is sometimes called "bi-tem****al",
because people sometimes represent it as two timestamps in two columns.

Representing the information in one column of "periods" has im****tant
advantages such as:
 * It's much simpler and less error-prone to write queries expressing
"overlaps", "contains", "intersection", etc.
 * We can effectively index this type with GiST. There's no effective
way to index two separate timestamp columns.

During PGCon 2008, several people encouraged me to submit the code for
inclusion in the core.

The advantages of including it in core are that some features can't be
done from pgfoundry, such as:
 * tem****al foreign keys
 * tem****al joins
 * syntax like "ALTER TABLE ... ADD LOG".
On the other hand, I don't currently have proposals for any of those
things. And including in core has the usual drawbacks, like waiting for
a new PostgreSQL release just to get some improvement for the data type.

1. Should it be included in core, or remain on pgfoundry?

2. If it should be included in core, I'd like to know if any changes
should be made to the API, available operators, or the names of anything
(see the reference docs). The current name of the type is "period" to
avoid confusion with SQL's misnamed "interval" type. The operators are
mostly self-explanatory, but I'm open to suggestion for better names for
those, too. 

3. I'd like to get some help with details like the optimal GiST
picksplit function to use, and selectivity functions, and analyze
functions. 

4. Should we replace the undo***ented type "tinterval"?

Regards,
	Jeff Davis


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




 10 Posts in Topic:
Proposal: temporal extension "period" data type
pgsql@[EMAIL PROTECTED]   2008-05-26 00:02:40 
Re: Proposal: temporal extension "period" data type
andrew@[EMAIL PROTECTED]   2008-05-26 06:49:03 
Re: Proposal: temporal extension "period" data type
gsmith@[EMAIL PROTECTED]   2008-05-26 08:49:03 
Re: Proposal: temporal extension "period" data type
pgsql@[EMAIL PROTECTED]   2008-05-26 10:59:52 
Re: Proposal: temporal extension "period" data type
hannu@[EMAIL PROTECTED]   2008-05-26 21:10:03 
Re: Proposal: temporal extension "period" data type
heikki@[EMAIL PROTECTED]   2008-05-26 19:11:30 
Re: Proposal: temporal extension "period" data type
pgsql@[EMAIL PROTECTED]   2008-05-26 11:36:19 
Re: Proposal: temporal extension "period" data type
dim@[EMAIL PROTECTED] (D  2008-05-26 23:00:11 
Re: Proposal: temporal extension "period" data type
pgsql@[EMAIL PROTECTED]   2008-05-26 11:49:09 
Re: Proposal: temporal extension "period" data type
pgsql@[EMAIL PROTECTED]   2008-05-26 10:23:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Dec 1 9:16:04 CST 2008.