6

Is there right way to get range types?

Or parse as String, and wait for native support...

For example tsrange:

["2010-01-01 14:00:00","2010-01-01 15:00:00"]

PG Range tupes - http://www.postgresql.org/docs/devel/static/rangetypes.html

1 Answer 1

3

You can use range functions in your query to create individual date columns.

select lower(some_range) as start, upper(some_range) as end ...

Then you can use ResultSet's getDate() method on the resulting columns.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.