From: Marc Polatschek <Marc.Polatschek@computec.de>
To: pgsql-general@postgresql.org
Subject: Re: SQL statement : list table details
Date: Fri, 1 Mar 2002 10:54:02 +0100
Message-ID: <2266D0630E43BB4290742247C89105758DCAB6@dozer.computec.de> (raw)
Im using this one
SELECT pg_class.relname AS table_name,
pg_attribute.attname AS column_name,
pg_type.typname AS data_type
FROM pg_class,
pg_attribute,
pg_type
WHERE pg_class.relfilenode = pg_attribute.attrelid
AND pg_type.oid = pg_attribute.atttypid
AND pg_class.relname not like 'pg_%'
AND pg_attribute.atttypmod > 0
AND pg_class.reltype > 0
ORDER BY pg_class.relname, pg_attribute.attname
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: Marc.Polatschek@computec.de, pgsql-general@postgresql.org
Subject: Re: SQL statement : list table details
In-Reply-To: <2266D0630E43BB4290742247C89105758DCAB6@dozer.computec.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox