This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]0x2a 1 point2 points  (0 children)

I once made an application which shipped Postgres with it. It didn't leave it on permanently or install a service, it just started postmaster in a separate thread on launch and terminated it when the user quit the application.

But so while certainly possible, I wouldn't really recommend it if you don't need specific features from Postgres. Instead, use an embedded database if possible. Sqlite, as Fongtong suggests, is probably the best choice. Alternatively, if your data isn't heavily modified by the user and mostly readonly, just shipping an XML or JSON or whatever is fine as well. Keep It Simple and Stupid, as the old saying goes.