Re: Embedded Database

From: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
To: Richard Connamacher <rich(dot)n1(at)indieimage(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Embedded Database
Date: 2004-08-09 12:57:17
Message-ID: 1092056237.22738.39.camel@jeff
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Hayes 2004-08-09 13:18:21 Re: How Two JOINS from one table
Previous Message Scott Marlowe 2004-08-09 12:53:23 Re: postgresql and smp linux kernel