Re: Post Install / Secure PostgreSQL - Mailing list pgsql-general

From Richard Broersma
Subject Re: Post Install / Secure PostgreSQL
Date
Msg-id AANLkTikm5nbGPQKmwAPdAfi7-_bjwDissnP3QxJ2pnwB@mail.gmail.com
Whole thread Raw
In response to Re: Post Install / Secure PostgreSQL  (Carlos Mennens <carlos.mennens@gmail.com>)
Responses Re: Post Install / Secure PostgreSQL  (Carlos Mennens <carlos.mennens@gmail.com>)
List pgsql-general
On Tue, Sep 14, 2010 at 9:50 AM, Carlos Mennens
<carlos.mennens@gmail.com> wrote:
> Secondly I am unable to find any information in the docs that show me
> how to set just the user password for 'carlos'. In MySQL I would use:
>
> SET PASSWORD FOR 'carlos'@'localhost' = PASSWORD('newpass');


You'd want to use "ALTER USER"

http://www.postgresql.org/docs/8.4/interactive/sql-alteruser.html

So:

ALTER USER carlos WITH ENCRYPTED PASSWORD 'password';



--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

pgsql-general by date:

Previous
From: Carlos Mennens
Date:
Subject: Re: Post Install / Secure PostgreSQL
Next
From: Alan Hodgson
Date:
Subject: Re: Post Install / Secure PostgreSQL