Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCssq-0002kM-MS for pgsql-admin@arkaria.postgresql.org; Fri, 23 Aug 2013 15:02:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCssq-0006Zx-5r for pgsql-admin@arkaria.postgresql.org; Fri, 23 Aug 2013 15:02:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCssp-0006Zq-44 for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 15:02:39 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCssg-0002dS-UK for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 15:02:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VCssg-0007r4-4y for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 08:02:30 -0700 Date: Fri, 23 Aug 2013 08:02:30 -0700 (PDT) From: David Johnston To: pgsql-admin@postgresql.org Message-ID: <1377270150147-5768391.post@n5.nabble.com> In-Reply-To: <52177664.5030908@gmail.com> References: <52177664.5030908@gmail.com> Subject: Re: question on the information_schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Salvatore Barone wrote > Hi all, > I created a database named "test" with the user "postgres" and I have > given all privileges on database "test" to a user that I use daily, > called "ssaa". > By submitting, as user "ssaa", to "test" database the =C2=ABselect * from > information_schema.columns with where col.table_schema! =3D 'Pg_catalog' > and col.table_schema! =3D 'Information_schema'=C2=BB query, instead of th= e list > of columns, I have an empty table. I have to give some special permit > ssaa user? > How do I resolve? > Thanks. >=20 > Ps. I apologize for my poor english. You have not provided an actual query. Copy/Paste the exact query you are executing. Note, however, that a newly created database does not have any "columns", or tables for that matter, aside from those in information_schema and pg_catalog. Why do you expect the query to return any results? More generally it is very helpful to explain "why" you are doing something and not just show - especially incompletely - what you are doing. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/quest= ion-on-the-information-schema-tp5768389p5768391.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin