Re: User tables

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: User tables
Дата
Msg-id 44089BA2.2000806@presinet.com
обсуждение исходный текст
Ответ на User tables  ("Hrishikesh Deshmukh" <hdeshmuk@gmail.com>)
Ответы Re: User tables
Список pgsql-general
Hrishikesh Deshmukh wrote:
> Hello All,
>
> Suppose there 3 users red, green, blue. How can the user green know what
> tables he has created?!
>  From psql command line \dt lists every table in the DB!!!
>
> Thanks in advance.
>
> Hrishi
If you mean that the owner of the table(s) is the user "green", then try
select * from pg_tables where tableowner='green';

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