Re: Help with a query - Mailing list pgsql-general

From Bas Scheffers
Subject Re: Help with a query
Date
Msg-id 4542.217.205.40.94.1077884958.squirrel@io.scheffers.net
Whole thread Raw
In response to Help with a query  (Alexander Cohen <alex@toomuchspace.com>)
List 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.

pgsql-general by date:

Previous
From: "cnliou"
Date:
Subject: Re: Case of strings
Next
From: Shridhar Daithankar
Date:
Subject: Re: PostgreSQL insert speed tests