Search Postgresql Archives

Re: User tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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';


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux