\d command - Mailing list pgsql-general
From Mark Jewiss
Subject \d command
Date
Msg-id Pine.BSO.4.10.9909271412510.4204-100000@office.knowledge.com
Whole thread Raw
Responses Re: [GENERAL] \d command
Re: [GENERAL] \d
command
Re: [GENERAL] \d
command
List pgsql-general
Hello,

I want to be able to build up information about the different tables held
in a database for a small diagnostic tool that I'm writing.

I need to see the name of each column in the table, the column data type
and size, and if nulls are allowed - essentially what is produced by the
'\d <tablename>' command.

Does anyone know the SQL query to use on the system tables to produce that
result? I've started to go through them now, and was expecting to find
something along the lines of 'pg_columns', but no such luck. :(

Regards,

Mark.
--
Mark Jewiss
Knowledge Matters Limited
http://www.knowledge.com


pgsql-general by date:

Previous
From: Otavio Exel
Date:
Subject: libpq on win32 & postgresql on linux
Next
From: Simon Drabble
Date:
Subject: Re: [GENERAL] \d command