Re: How to retrive List of Tables in a Database using...

From: Tadipathri Raghu <traghu(dot)dba(at)gmail(dot)com>
To: yogiyang007(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to retrive List of Tables in a Database using...
Date: 2010-03-25 04:34:54
Message-ID: 645d9d71003242134v185c7fc9l4375946d0d9636@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Yogi Yang,

Psql is a very strong tool, and easy to use. Please find the answers for
your queries
>>1. Retrieve list of all Tables in a database
>>2. Retrieve list of all Functions, Triggers, Sequences, Views, etc.
>>3. Retrieve list of all Group Roles
postgres=#\d{t|i|s|v|S|g|n}

you can use any of the things as per your requirement

>>4. Retrieve list of all Login Roles
>>5. Structure of a Table
postgres=# \d <tablename>

Hope this will help you out

Regards
Raghavendar

TIA

Yogi Yang

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tadipathri Raghu 2010-03-25 04:37:44 Re: "\d pg_class" fails in PG 8.4
Previous Message Tom Lane 2010-03-25 04:33:09 Re: "\d pg_class" fails in PG 8.4