Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 7DA192E0042 for ; Thu, 24 Apr 2008 16:58:26 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 60391-07 for ; Thu, 24 Apr 2008 16:58:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from momjian.us (momjian.us [70.90.9.53]) by developer.postgresql.org (Postfix) with ESMTP id 79C092E004B for ; Thu, 24 Apr 2008 16:58:21 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m3OJwEm18743; Thu, 24 Apr 2008 15:58:14 -0400 (EDT) From: Bruce Momjian Message-Id: <200804241958.m3OJwEm18743@momjian.us> Subject: Re: FAQ on Embedding Postgres In-Reply-To: To: Greg Smith Date: Thu, 24 Apr 2008 15:58:14 -0400 (EDT) CC: PostgreSQL Docs X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/24 X-Sequence-Number: 4884 Added to FAQ as part of item 1.13:

1.13) How does PostgreSQL compare to other DBMSs? Can PostgreSQL be embedded?

...

PostgreSQL is designed as a client/server architecture, which requires separate processes for each client and server, and various helper processes. Many embedded architectures can support such requirements. However, if your embedded architecture requires the database server to run inside the application process, Postgres cannot be used and a lighter-weight database solution should be selected.

--------------------------------------------------------------------------- Greg Smith wrote: > I think it's funny to consider a specific recommendation for SQLite as > being out of line when you look at the history here. The whole reason > that software even exists is because of the difficulty of using PostgreSQL > in this context. See http://www.linuxjournal.com/article/6650 > > With that in mind, after gobbling up a good mix of earlier suggestions > here and editing a bit I think it's completely reasonable to write this: > > "Q: How can I embed PostgreSQL inside another program? > > A: PostgreSQL is designed with a client/server architecture that makes it > difficult to embed this way. There are other open source databases you > might consider that are better suited for embedded usage, such as SQLite > which was designed for that purpose." > > Now there's no obligation to mention Firebird/MySQL/etc. because that's > not in fact what they were originally designed for (there's not enough > angry Derby users to worry about them), and this satisfies the idea I > support that you give people some idea where they might look instead. > > -- > * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD > > -- > Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) > To make changes to your subscription: > http://mail.postgresql.org/mj/mj_wwwusr?domain=postgresql.org&extra=pgsql-docs -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +