Re: Embedding postgresql in my application - Mailing list pgsql-interfaces

From Murray Cumming
Subject Re: Embedding postgresql in my application
Date
Msg-id 1166542613.20613.19.camel@localhost.localdomain
Whole thread Raw
In response to Re: Embedding postgresql in my application  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Responses Re: Embedding postgresql in my application  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Embedding postgresql in my application  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-interfaces
On Sat, 2006-12-16 at 13:16 +0700, Jeroen T. Vermeulen wrote:
> f your application
> can run under many different user identities and each should have its
> own
> database user, use "ident sameuser"

I believe that ident authentication requires an additional service such
as gidentd. Well, I think that's been my experience in the past.

>  and create a database user for every
> system user when that user first runs the application:
> 
>   createuser -h "$DBDIR/data" \
>     --no-superuser \
>     --no-createrole \
>     --no-createdb \
>     $USERNAME 

createuser asks for a password on stdin. Do you know of any way to
specifify an initial superuser and password for a new database cluster
without doing it via stdin? That doesn't seem like a stable API that I
should rely on.

-- 
Murray Cumming
murrayc@murrayc.com
www.murrayc.com
www.openismus.com



pgsql-interfaces by date:

Previous
From: Murray Cumming
Date:
Subject: Re: Embedding postgresql in my application
Next
From: Alvaro Herrera
Date:
Subject: Re: Embedding postgresql in my application