How to determine table definitions

From: Diane Moore <dmmlne(at)drizzle(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: How to determine table definitions
Date: 2002-02-21 22:55:05
Message-ID: 3C757AC9.B9333FC3@drizzle.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello -
I am brand new to PostgreSQL and am trying to list the field information
for a specific table in a database. I would like to be able to query
the pg_attribute table, but can not determine the necessary "attrelid"
from the fields in the pg_class record for my table of interest.

Alternatively, is there a utility that just displays table-specific
information including fields, field lengths, datatypes, etc.?

Thanks much!
Diane

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2002-02-22 01:04:51 Re: Adding CLUSTERING removed my indexes
Previous Message PG Explorer 2002-02-21 20:40:10 Re: [HACKERS] foreign key is from different tables - what to do?