In article <1030007114(dot)22469(dot)0(at)iris(dot)uk(dot)clara(dot)net>, Philip Rudling wrote:
> Is the an SQL statement that can be used from within a program that will
> give the output of \d command? Like the describe command in MySQL's version
> of SQL?
>
There is a flag to psql which will show you the sql from the
backslash commands. I believe it is -E, but check the manpage.