Re: Roles and passwds - Mailing list pgsql-novice

From Tom Lane
Subject Re: Roles and passwds
Date
Msg-id 3205.1363701467@sss.pgh.pa.us
Whole thread Raw
In response to Roles and passwds  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
Responses pg_restore - hangs or check on progress
Notification of minor release and/or Security Release
List pgsql-novice
"Birchall, Austen" <austen.birchall@metoffice.gov.uk> writes:
> I created the following role

> postgres=# create role sde LOGIN PASSWORD 'passwd' SUPERUSER NOINHERIT CREATEDB;

> [ but the password isn't used ]

> Is this expected behaviour?

It can be depending on how you have the server's authentication
configured (pg_hba.conf).  A password will only be used if the server is
configured to demand one for the particular connection attempt.  I
suspect you've got yours set to "trust" for local connections.  Read

http://www.postgresql.org/docs/8.4/static/client-authentication.html

            regards, tom lane


pgsql-novice by date:

Previous
From: "Birchall, Austen"
Date:
Subject: Roles and passwds
Next
From: Terry Chong
Date:
Subject: Question about error handling with UDF written in C