Re: question on the information_schema

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: question on the information_schema
Дата
Msg-id CAGrpgQ_YrK=nvH2d+AvbJLdd_epnNXUOvXe=6BvroHZAVkPV3g@mail.gmail.com
обсуждение исходный текст
Ответ на question on the information_schema  (Salvatore Barone <salvator.barone@gmail.com>)
Ответы Re: question on the information_schema  (Salvatore Barone <salvator.barone@gmail.com>)
Список pgsql-admin

On Fri, Aug 23, 2013 at 7:49 AM, Salvatore Barone <salvator.barone@gmail.com> 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?

Your query as you've written it won't return what you expect. Try the following:

select *
from information_schema.columns
where table_schema not in ('information_schema','pg_catalog')
order by 1,2,3,4;

В списке pgsql-admin по дате отправления:

Предыдущее
От: Salvatore Barone
Дата:
Сообщение: question on the information_schema
Следующее
От: David Johnston
Дата:
Сообщение: Re: question on the information_schema