pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Murray Cumming <murrayc@murrayc.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Jeroen T. Vermeulen <jtv@xs4all.nl>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Embedding postgresql in my application
Date: Wed, 20 Dec 2006 09:47:57 +0100
Message-ID: <1166604477.5754.2.camel@localhost.localdomain> (raw)
In-Reply-To: <20061219154654.GA3036@alvh.no-ip.org>
References: <1166225144.12609.2.camel@localhost.localdomain>
	<20058.125.24.243.222.1166249768.squirrel@webmail.xs4all.nl>
	<1166542613.20613.19.camel@localhost.localdomain>
	<20061219154654.GA3036@alvh.no-ip.org>

On Tue, 2006-12-19 at 12:46 -0300, Alvaro Herrera wrote:
> Murray Cumming wrote:
> > 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.
> 
> Sure, initdb accepts the -U parameter to specify the user and you can
> put the password in a temp file and give it to initdb with --pwfile.

Thanks. That works well.

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




view thread (12+ messages)  latest in thread

Message-ID: <1166604477.5754.2.camel@localhost.localdomain>
Permalink:  ../1166604477.5754.2.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1166604477.5754.2.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: murrayc@murrayc.com, alvherre@commandprompt.com, jtv@xs4all.nl
  Subject: Re: Embedding postgresql in my application
  In-Reply-To: <1166604477.5754.2.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox