sql script questions

From: shaunnx(at)my-deja(dot)com (X)
To: pgsql-general(at)postgresql(dot)org
Subject: sql script questions
Date: 2001-10-23 19:50:45
Message-ID: 6375fd1b.0110231150.3a7b0556@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Howdy:

Please redirect me if this is the wrong group. My question
is pretty much SQL related for Postres.

I want to write a script (either shell or SQL) to:

1) get a list of tables
2) get the list of attributes, type and modifyer
of each table.

It is something in the way of:

for i in `\d`
do
\d $i
done

As far as I can tell, '\d' describes a table, view or what
have you. '\d' alone gives me a list of tables and views I
have in my database.

Any examples out there that does this?

TIA!

-X

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Alberto 2001-10-23 20:02:53 Evaluating PostgreSQL
Previous Message Jani Averbach 2001-10-23 19:46:10 Re: Charset problem