Re: question on the information_schema

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: question on the information_schema
Date: 2013-08-23 15:02:30
Message-ID: 1377270150147-5768391.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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 «select * from
> information_schema.columns with where col.table_schema! = 'Pg_catalog'
> and col.table_schema! = 'Information_schema'» query, instead of the list
> of columns, I have an empty table. I have to give some special permit
> ssaa user?
> How do I resolve?
> Thanks.
>
> 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/question-on-the-information-schema-tp5768389p5768391.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Salvatore Barone 2013-08-23 15:02:47 Re: question on the information_schema
Previous Message bricklen 2013-08-23 14:57:51 Re: question on the information_schema