Skip site navigation (1) Skip section navigation (2)

Re: FAQ on Embedding Postgres

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Greg Smith <gsmith(at)gregsmith(dot)com>
Cc: PostgreSQL Docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: FAQ on Embedding Postgres
Date: 2008-04-24 19:58:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Added to FAQ as part of item 1.13:

    <H3 id="item1.13">1.13) How does PostgreSQL compare to other
    <SMALL>DBMS</SMALL>s?  Can PostgreSQL be embedded?</H3>


    <P>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.</P>


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
> 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(at)gregsmith(dot)com Baltimore, MD
> --
> Sent via pgsql-docs mailing list (pgsql-docs(at)postgresql(dot)org)
> To make changes to your subscription:

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-docs by date

Next:From: Andy AndersonDate: 2008-04-30 13:10:38
Subject: Quoting "
Previous:From: Magnus HaganderDate: 2008-04-21 09:47:09
Subject: Re: What's New

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group