Re: question on the information_schema - Mailing list pgsql-admin

From David Johnston
Subject Re: question on the information_schema
Date
Msg-id 1377270150147-5768391.post@n5.nabble.com
Whole thread Raw
In response to question on the information_schema  (Salvatore Barone <salvator.barone@gmail.com>)
Responses Re: question on the information_schema
List 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.


pgsql-admin by date:

Previous
From: bricklen
Date:
Subject: Re: question on the information_schema
Next
From: Salvatore Barone
Date:
Subject: Re: question on the information_schema