Skip to content

Instantly share code, notes, and snippets.

@miracle2k
Created August 24, 2017 13:38
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 miracle2k/4a955ebd6ff98edb87f075b5e0cfd9d8 to your computer and use it in GitHub Desktop.
Save miracle2k/4a955ebd6ff98edb87f075b5e0cfd9d8 to your computer and use it in GitHub Desktop.
diskutil erasevolume HFS+ "postgres_ramdisk" `hdiutil attach -nomount ram://409600`
sudo chown -R $(whoami) /Volumes/postgres_ramdisk/
pg_ctl -D /Volumes/postgres_ramdisk/postgres init
pg_ctl -D /Volumes/postgres_ramdisk/postgres start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment