Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id DD5469FB954 for ; Tue, 3 Jul 2007 14:22:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31006-09-2 for ; Tue, 3 Jul 2007 14:22:28 -0300 (ADT) X-Greylist: delayed 01:00:00.898828 by SQLgrey-1.7.5 Received: from mmp3.nems.noaa.gov (mmp3.nems.noaa.gov [140.90.121.158]) by postgresql.org (Postfix) with ESMTP id 339029FB1D6 for ; Tue, 3 Jul 2007 14:22:27 -0300 (ADT) Received: from [198.206.42.50] by mmp3.nems.noaa.gov (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPSA id <0JKM007ZN2T8IW10@mmp3.nems.noaa.gov> for pgsql-sql@postgresql.org; Tue, 03 Jul 2007 12:22:21 -0400 (EDT) Date: Tue, 03 Jul 2007 12:22:14 -0400 From: Mark Fenbers Subject: Informix Schema -> PostgreSQL ? To: pgsql-sql@postgresql.org Message-id: <468A77B6.2070706@noaa.gov> Organization: DOC/NOAA/NWS/OHRFC MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/19 X-Sequence-Number: 28754 I am an ex-Informix convert. Informix used the term "schema" to refer to the SQL-format definition of how a table or view was created. E.g., CREATE TABLE john ( char(8) lid, ...); Some views we have are quite complex (and not created by me) and I want to create a similar one in Pg. If I could see the view in this SQL format, then I could use SQL to create another one using this as a template. pgadmin3 can show this definition in SQL format, but I can't use pgadmin3 on a certain box. How can I show information in Pg (psql) the way that Informix would show a schema? BTW, what does PostgreSQL call this (what Informix calls a schema)?? Mark