https://github.com/fergusstrange/embedded-postgres
UPDATE: Actually, I see it is downloaded (and I think cached?). I can't recall if you can embed as an option or not.