Re: User/login questions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jason Hihn <jhihn(at)paytimepayroll(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: User/login questions
Date: 2003-08-14 13:49:49
Message-ID: 26869.1060868989@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jason Hihn <jhihn(at)paytimepayroll(dot)com> writes:
> 2) Finding out what databases the user has access to (How?) without having
> to maintain a copy myself. (Can it be pulled from some system table, or join
> of system tables? (i.e. SELECT db_name FROM something WHERE user='me' AND
> granted_perm='SELECT')

I'm afraid not --- that info is only available from the postmaster's
pg_hba.conf file, which is not accessible as a table. The typical setup
though is that any user can connect to any database.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Nabil Sayegh 2003-08-14 13:51:11 Re: Fast deletes
Previous Message Tom Lane 2003-08-14 13:46:19 Re: Fast deletes