Hi,
I'm using the following in an SQL :
select (EACH(value)).key as measurement_key,(EACH(value)).value as valuefrom t_reading_hstore;
Just move the each call to the from clause as a lateral join and treat the result as a two-column table.
David J.