Programmatically changing passwords - Mailing list pgsql-admin

From David Leangen
Subject Programmatically changing passwords
Date
Msg-id 7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net
Whole thread Raw
Responses Re: Programmatically changing passwords  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Programmatically changing passwords  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-admin
Hello!

I am trying to build an RPM package that will put my Postgres
installation into a known (usable) state, without requiring any
interaction.

To this effect, I need to do the following:

1. set password for superuser
2. createuser user
3. createdb -O user dbname


No problems with (3) above. But for (1) and (2), how can I set the
passwords programmatically, since createuser does not let me do this
(requires interactive prompt from user)?


Thank you!


pgsql-admin by date:

Previous
From: adey
Date:
Subject: Re: vacuumdb exclude tables option?
Next
From: Tom Lane
Date:
Subject: Re: Programmatically changing passwords