Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Parse urls with postgres

from ts_parse('default', '')
natural join ts_token_type('default')
  alias   |             token
 protocol | https://
 url      |
 host     |
 url_path | /team/brian-dunn
(4 rows)

More in the postgres docs

Looking for help? Hashrocket developers believe that data quality is as important as code quality. We enjoy all the challenges of relational databases, from finding the fastest index, to structuring data to fit the needs of an application. We're eager to share our experiences; check out PG Casts, our series of free PostgreSQL screencasts.