I have a table that looks like this:
| id | attrs |
|---|---|
| 1 | {"a":{"kind":"kind_1", "value":"val_1"}, "b":{"kind":"kind_2", "value":"val_2"} |
| 2 | {"c":{"kind":"kind_3", "value":"val_1"}} |
| 3 | {"a":{"kind":"kind_1", "value":"val_1"}, "d":{"kind":"kind_4", "value":"val_4"}, ..... |
I would like to extract all the unique value, so the output would be:
| val_1 |
| val_2 |
| val_4 |
| ... |
I tried to use jsonb_each method for it, but without any luck