barry kimelman <perlmaster56@gmail.com> writes:
> I am trying to come up with a query of the system catalog tables to give me
> the same info as the psql command "\d tablename"
A useful trick here is to start psql with the -E option, which will
cause it to echo the actual queries it sends for backslash commands.
regards, tom lane