Re: serverless postgresql

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: serverless postgresql
Date: 2004-01-14 05:12:45
Message-ID: m38ykbdsfm.fsf@wolfe.cbbrowne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

jlb(at)houseofdistraction(dot)com (Jeff Bowden) wrote:
> Tom Lane wrote:
>>Not only are the developers uninterested in it, the developers actively
>>oppose it. We think an embedded database library cannot be reliable
>>enough to meet our notion of a "database", since it would be subject to
>>failures anytime the surrounding application has a bug. Keeping the
>>client code in a separate process is a far more robust design.

> That makes sense to me. I wonder if sqlite suffers for this problem
> (e.g. app crashing and corrupting the database).

I'm not sure its use has yet been so widespread that there is a good
feel for this. It is doubtless _possible_; "crash patterns" likely
_don't_ lead to enormous disasters when databases are small,
localized, and the apps probably _don't_ crash all the time.

> What about the notion of running postmaster on-demand as the user?
> Is that something that anyone has experience with? It seems like it
> would solve the complex configuration problems without compromising
> robustness or requiring any special support other than sufficient
> command-line parameters.

I haven't had call for this being controlled "by the application," but
I can't see it being vastly troublesome. And I _don't_ see it
requiring lots of "command line" parameters; you just need to specify
the directory where the configuration is.

> Oh yeah, that brings me to another question. I was looking at the
> postmaster command-line switches and I couldn't find any that would
> allow me to point it at an arbitrary config file but then I had a
> look around and it seems that the .conf files are already used by
> the various startup scripts. Does postmaster itself ever read the
> .conf files or is it controlled strictly by switches?

All of the .conf files are in one directory, and that directory is
controlled by either the value of environment variable PGDATA or the
"-D" command parameter.

It seems not-overly-valuable to have the .conf files be able to be
specified in random other locations.

Is there some particular reason you have in mind why you would want to
_ignore_ the configuration in $HOME/DBDIR and instead use
configuration in some other random location? I would think that
collecting the config into one directory, as is done right now, is a
_good_ thing.
--
let name="cbbrowne" and tld="ntlug.org" in name ^ "@" ^ tld;;
http://www3.sympatico.ca/cbbrowne/lsf.html
"Even in the area of anticompetitive conduct, Microsoft is mainly an
imitator." -- Ralph Nader (1998/11/11)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Bowden 2004-01-14 05:13:00 Re: serverless postgresql
Previous Message Alex Satrapa 2004-01-14 05:01:57 Re: Best practice? Web application: single PostgreSQL