Re: User tables - Mailing list pgsql-general

From Bricklen Anderson
Subject Re: User tables
Date
Msg-id 44089BA2.2000806@presinet.com
Whole thread Raw
In response to User tables  ("Hrishikesh Deshmukh" <hdeshmuk@gmail.com>)
Responses Re: User tables
List 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 by date:

Previous
From: "Hrishikesh Deshmukh"
Date:
Subject: User tables
Next
From: Rick Gigger
Date:
Subject: Re: query timeout