Re: Getting a DB password to work without editing pg_hba.conf, possible?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Madison Kelly <linux(at)alteeve(dot)com>
Cc: PgSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Getting a DB password to work without editing pg_hba.conf, possible?
Date: 2005-12-16 18:48:01
Message-ID: 27813.1134758881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Madison Kelly <linux(at)alteeve(dot)com> writes:
> I want to find a way to let the user set the password on the new
> database and have postgres actually ask for it without editing the
> default 'pg_hba.conf' file, if at all possible.

There is no such animal as a "database password" in PG. There are user
passwords. You can grant or deny a user access to a database altogether,
but you can't predicate it on him supplying a password different from
his (single) login password.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Madison Kelly 2005-12-16 19:09:52 Re: Getting a DB password to work without editing pg_hba.conf,
Previous Message Michael Fuhr 2005-12-16 18:43:50 Re: Fetch statements