Tagged articles
1 articles
Page 1 of 1
Qunar Tech Salon
Qunar Tech Salon
Apr 30, 2015 · Databases

Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL

The article demonstrates how to split a space‑separated "validperiods" column into separate begin, end, and price fields in PostgreSQL using string_to_array, to_timestamp, regexp_replace, and unnest to transform the data into a readable tabular format.

data normalizationpostgresqlregex
0 likes · 8 min read
Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL