Re: User tables

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Hrishikesh Deshmukh <hdeshmuk(at)gmail(dot)com>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: User tables
Date: 2006-03-03 19:40:18
Message-ID: 44089BA2.2000806@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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';

In response to

  • User tables at 2006-03-03 19:22:26 from Hrishikesh Deshmukh

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rick Gigger 2006-03-03 20:14:04 Re: query timeout
Previous Message [webattach] IT-Dienstleistungen 2006-03-03 19:26:38 Re: ERROR: column "datpath" does not exist