Skip to content

Instantly share code, notes, and snippets.

@arsham
Created March 4, 2016 17:19
Show Gist options
  • Select an option

  • Save arsham/256bb638c2d28cc61895 to your computer and use it in GitHub Desktop.

Select an option

Save arsham/256bb638c2d28cc61895 to your computer and use it in GitHub Desktop.
If you are going to build a large index or do some other large query that can benefit from access to more RAM, set work_mem larger for your session
set work_mem = '56GB';
commit;
-- Do your work here.
-- Then be a good neighbour.
set work_mem = default;
commit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment