ERROR:  could not write block 1 of temporary file: No space left on device
HINT:  Perhaps out of disk space?

select a.id,a.title,substr(a.gist,1,400) as story,to_char(a.etm, 'FMDay,Month FMDD,IYYY') || ' [' || (select tmp.interval_time1(a.etm::text)) || ']' as etm,img_path as path from ewf.story_15 a  WHERE a.sub_ctg IN (39,39 ) order by a.id desc OFFSET (859*7)-7  limit 7