Retrieving database schema - Mailing list pgsql-general

From Gary M
Subject Retrieving database schema
Date
Msg-id Pine.LNX.4.44.0303222124210.25865-100000@ruby.gem
Whole thread Raw
Responses Re: Retrieving database schema  (Lamar Owen <lamar.owen@wgcr.org>)
List pgsql-general
From embedded SQL - how do I retrieve
 1) a list of the tables in the datbase?
 2) a list of the columns in each table?


Perhaps #1 is this:

  SELECT tablename FROM pg_tables WHERE NOT schemaname = 'pg_catalog';

I'm at a loss for #2
The following doesn't seem very useful:

 SELECT * FROM pg_class WHERE relname = 'tablename';


pgsql-general by date:

Previous
From: "Thomas T. Thai"
Date:
Subject: After Vacuum Analyze - ERROR: datumGetSize: Invalid typLen 0
Next
From: Lamar Owen
Date:
Subject: Re: Retrieving database schema