Today I Learned

A Hashrocket project

Parse urls with postgres

 select
  alias,
  token
from ts_parse('default', 'https://hashrocket.com/team/brian-dunn')
natural join ts_token_type('default')
  alias   |             token
----------+--------------------------------
 protocol | https://
 url      | hashrocket.com/team/brian-dunn
 host     | hashrocket.com
 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.