Re: User tables

From: "chris smith" <dmagick(at)gmail(dot)com>
To: "Bricklen Anderson" <banderson(at)presinet(dot)com>
Cc: "Hrishikesh Deshmukh" <hdeshmuk(at)gmail(dot)com>, Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: User tables
Date: 2006-03-05 06:22:33
Message-ID: 3c1395330603042222x5464fa2bv9acea9fedb29cd8a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

or from inside psql:

\z

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Duddridge 2006-03-05 07:34:46 Re: PostgreSQL on Intel Core Duo Macs?
Previous Message Gavin M. Roy 2006-03-05 06:19:36 Re: xml and utf-8