title: Keeping postgres entirely in memory
body: <p>I am running various tests that spend a lot of time in the database.</p>
  
  <p>I'd like to keep it all in memory and have it not touch the db, hopefully that would speed things up. Like using sqlite3's in-memory option. I don't need persistence/durability/whatnot, everything is immediately discarded after the test.</p>
  
  <p>Is that possible? I tried tweaking my postgres memory-related vars (as in the solution below), but that doesn't seem to affect the number of db writes it performs, and I couldn't find anything that looks like an 'in-memory' option.</p>
  
  <p><a href="https://dba.stackexchange.com/questions/18484/tuning-postgresql-for-large-amounts-of-ram">https://dba.stackexchange.com/questions/18484/tuning-postgresql-for-large-amounts-of-ram</a></p>