sql syntax to replace desc - Mailing list pgsql-general

From hendra kusuma
Subject sql syntax to replace desc
Date
Msg-id 26dadb3d0901301820x38e5ab59hc75c3b0e5967537@mail.gmail.com
Whole thread Raw
Responses Re: sql syntax to replace desc  (Richard Broersma <richard.broersma@gmail.com>)
Re: sql syntax to replace desc  (Martin Gainty <mgainty@hotmail.com>)
List pgsql-general
Dear all,

I need to see my table structure complete with it's constraint (at least primary key, foreign key, not null, unique)
In oracle or mysql, I usually use desc table_name to achieve such result
But I find from pgsql-doc that desc isn't implemented.

Does anyone know some sql syntax to do that?

I'm not talking about \d option at psql console since I need that data
to be called from programming language such as PHP and Ruby

Thank you
Regards
Hendra

pgsql-general by date:

Previous
From: rhubbell
Date:
Subject: Re: Pet Peeves?
Next
From: Richard Broersma
Date:
Subject: Re: sql syntax to replace desc