Re: Embedded Database - Mailing list pgsql-general

From Jeff Davis
Subject Re: Embedded Database
Date
Msg-id 1092056237.22738.39.camel@jeff
Whole thread Raw
In response to Embedded Database  ("Richard Connamacher" <rich.n1@indieimage.com>)
List pgsql-general
On Mon, 2004-08-09 at 01:30, Richard Connamacher wrote:
> Does anybody know if it can be used as an embedded database engine within an application,
> so the application doesn't have to connect to an external server? (I have looked at SQLite, and
> I'd rather use PostgreSQL for my app, footprint be damned.)
>

There are no embedded database libraries for PostgreSQL data. Even a
well-designed embedded database library can leave your data corrupted
due to an applicaiton bug (because an embedded DB runs in the same
address space as the application, so it has no way to protect itself
from application bugs). Dangers like this, in addition to the
fundamental design differences, mean that one probably won't be
developed any time soon.

> And, does anybody know if it's possible for PostgreSQL to run a database entirely in RAM
> without saving the file out to disk?
>

Linux has the "tmpfs" filesystem. Just put all the DB files in a tmpfs
mount.

Hope this helps,
    Jeff Davis


pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: postgresql and smp linux kernel
Next
From: zhicheng wang
Date:
Subject: Re: postgresql and smp linux kernel