create temp table test as select st_collect(geom) as g from ( select (st_dumppoints(st_buffer(st_point(0,0), 1e4, 150))).geom ) as foo;
set statement_timeout to 1000;
select st_npoints(st_buffer(g, 1e5, 150)) from test;
