Skip to content

Instantly share code, notes, and snippets.

@x4m
Created July 26, 2016 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x4m/7e69fd924b9ffd2fdc9c6100e741171d to your computer and use it in GitHub Desktop.
Save x4m/7e69fd924b9ffd2fdc9c6100e741171d to your computer and use it in GitHub Desktop.
create table dataTable(x int, y int);
insert into dataTable(x,y) select x,y from generate_series(1,1e3,1) x,generate_series(1,1e3,1) y;
create index idx on dataTable using brin(x,y);
update datatable set x = random()*1024, y = random()*1024;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment