Re: Help with a query

From: "Bas Scheffers" <bas(at)scheffers(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Help with a query
Date: 2004-02-27 12:29:18
Message-ID: 4542.217.205.40.94.1077884958.squirrel@io.scheffers.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Klint,

> select groname from pg_group
> where (select usesyside from pg_shadow where usename = 'postgres') =
> any(grolist);
Unless you are lgged in as superuser (and applications other than pgAdmin
et al shouldn't be) you will get access denied on pg_shadow. (because it
contains passwords) Selecting on pg_user gives you the same result and can
be done by any user.

Bas.

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2004-02-27 12:32:30 Re: PostgreSQL insert speed tests
Previous Message cnliou 2004-02-27 12:27:36 Re: Case of strings