pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bas Scheffers <bas@scheffers.net>
To: pgsql-general@postgresql.org
Subject: Re: Help with a query
Date: Fri, 27 Feb 2004 12:29:18 -0000 (GMT)
Message-ID: <4542.217.205.40.94.1077884958.squirrel@io.scheffers.net> (raw)

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.



view thread (16+ messages)  latest in thread

Message-ID: <4542.217.205.40.94.1077884958.squirrel@io.scheffers.net>
Permalink:  ../4542.217.205.40.94.1077884958.squirrel@io.scheffers.net/
Also on:    postgresql.org/message-id/4542.217.205.40.94.1077884958.squirrel@io.scheffers.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bas@scheffers.net
  Subject: Re: Help with a query
  In-Reply-To: <4542.217.205.40.94.1077884958.squirrel@io.scheffers.net>
  References: <4542.217.205.40.94.1077884958.squirrel@io.scheffers.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox