Re: Time range

2019-05-31 Thread Tom Lane
Isaac Morland writes: > Given that other built-in types have built-in range types, I think that the > time and timetz types should also have built-in range types. There's only a very small number of built-in range types: postgres=# select typname from pg_type where typtype = 'r' order by 1;

Re: Time range

2019-05-31 Thread Isaac Morland
timetzrange is also missing. In my database I have: CREATE TYPE timerange AS RANGE (SUBTYPE = time); COMMENT ON TYPE timerange IS 'range of times without time zone'; GRANT USAGE ON TYPE timerange TO PUBLIC; CREATE TYPE timetzrange AS RANGE (SUBTYPE = timetz); COMMENT ON TYPE timetzrange IS

Re: Time range

2019-05-31 Thread Thomas Kellerer
Donald Shtjefni schrieb am 31.05.2019 um 13:35: > I was wondering why there is not a type Range of time without time zone, I > think it may be useful for someone, Is good if i do PR. you can easily create one: create type timerange as range (subtype = time); Thomas

Re: Time range

2019-05-31 Thread Tomas Vondra
On Fri, May 31, 2019 at 08:35:31AM +0200, Donald Shtjefni wrote: Hi, I was wondering why there is not a type Range of time without time zone, I think it may be useful for someone, Is good if i do PR. Sorry if I've worte in the wrong place Doesn't tsrange already do that? That's a timestamp

Time range

2019-05-31 Thread Donald Shtjefni
Hi, I was wondering why there is not a type Range of time without time zone, I think it may be useful for someone, Is good if i do PR. Sorry if I've worte in the wrong place