Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1NFNKx49470 for ; Fri, 23 Feb 2001 10:23:20 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f1NFN1927931; Fri, 23 Feb 2001 10:23:06 -0500 (EST) To: "jhatfield@g-s.com.au" cc: "'PostgreSQL Admin News'" , Dave Page Subject: Re: select * from pgadmin_users; causes error In-reply-to: <01C09DAD.8E258320.jhatfield@g-s.com.au> References: <01C09DAD.8E258320.jhatfield@g-s.com.au> Comments: In-reply-to John Hatfield message dated "Fri, 23 Feb 2001 15:30:27 +1000" Date: Fri, 23 Feb 2001 10:23:01 -0500 Message-ID: <27928.982941781@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200102/177 X-Sequence-Number: 779 John Hatfield writes: > It looks as though the views are created the first time you login to > pgAdmin. So when I logged first as an ordinary user not as the postgres > (database superuser), the views were created with this user as the owner. > A trap for beginners!! Indeed. I wonder whether pgadmin actually needs to see the password column. If not, perhaps it could make a view of pg_user instead of pg_shadow to avoid this problem. If it does, selecting directly from pg_shadow with no view seems like the most reliable way... regards, tom lane