drop table gist_point_tbl;
create table gist_point_tbl(id int4, p point);

SELECT setseed(.43);

insert into gist_point_tbl (id, p)
select g,        point(random()*1000, random()*1000) from generate_series(1, 1000000) g;
select pg_current_wal_lsn();

create index gist_pointidx on gist_point_tbl using gist(p);
select pg_current_wal_lsn();

select pg_relation_size('gist_pointidx');
select pg_size_pretty(pg_relation_size('gist_pointidx'));

/*
 pg_relation_size 
------------------
         74465280

master
 pg_wal_lsn_diff 
-----------------------
              187945088

patched
 pg_wal_lsn_diff 
-----------------------
               45394944

*/
