I have a Postgres table test
like this:
id | data
---+----------------------------------
0 | {'0':'a','1':'b','2':'c'}
1 | {'0':'d','1':'e' }
2 | {'0':'f','1':'g','2':'h','3':'i'}
How to get the following output?
id | data
---+-----
0 | a
0 | b
0 | c
1 | d
1 | e
2 | f
2 | g
2 | h
2 | i