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

SELECT setseed(.43);

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

select pg_current_wal_lsn();

create index spgist_point_idx on spgist_point_tbl using spgist(p);

select pg_current_wal_lsn();
select pg_relation_size('spgist_point_idx');
select pg_size_pretty(pg_relation_size('spgist_point_idx'));


/*
 pg_relation_size 
------------------
         44695552

master
 pg_wal_lsn_diff 
-----------------------
              124900416

patched
 pg_wal_lsn_diff 
-----------------------
               39783104

*/
