Re: select * from pgadmin_users; causes error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "jhatfield(at)g-s(dot)com(dot)au" <jhatfield(at)g-s(dot)com(dot)au>
Cc: "'PostgreSQL Admin News'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: select * from pgadmin_users; causes error
Date: 2001-02-23 05:00:58
Message-ID: 27201.982904458@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

John Hatfield <jhatfield(at)g-s(dot)com(dot)au> writes:
> When logged in as postgres (using psql)the following query returns an error
> gsmain_test=# select * from pgadmin_users;
> ERROR: pg_shadow: Permission denied.

pgadmin_users is a view, no? Which user was it created by? Views
execute with the permissions of the creating user, for reasons that
should be apparent after some thought.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message John Hatfield 2001-02-23 05:30:27 RE: select * from pgadmin_users; causes error
Previous Message John Hatfield 2001-02-23 03:56:12 FW: select * from pgadmin_users; causes error