Re: Range types
От | Martijn van Oosterhout |
---|---|
Тема | Re: Range types |
Дата | |
Msg-id | 20091216211716.GC17751@svana.org обсуждение исходный текст |
Ответ на | Re: Range types (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Range types
|
Список | pgsql-hackers |
On Wed, Dec 16, 2009 at 03:57:44PM -0500, Tom Lane wrote: > Jeff Davis <pgsql@j-davis.com> writes: > > I still have not seen an answer to the problem of changing the > > representation of a continuous range. If you have the continuous range > > [5, 10], you're pretty much stuck with that representation, even if the > > application is expecting things in the form [ ). > > That is not our problem. It's the application's problem if it can't > handle the concept. You might as well be complaining that type numeric > is broken because it can represent values that will fail to fit into > float8 when some application tries to force them into that form. However, it does seem reasonable to allow people to restrict, either by typmod or a check constraint the kinds of values that can be stored in a particular column. Then an application can decide which way they want their intervals to work and have the database enforce it. (Intermediate values may become a different kind, just as long as the result being stored it the right kind.) Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Please line up in a tree and maintain the heap invariant while > boarding. Thank you for flying nlogn airlines.
В списке pgsql-hackers по дате отправления: