Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB41cwm36404 for ; Mon, 3 Dec 2001 20:38:58 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id fB41DE075964 for pgsql-admin@postgresql.org; Mon, 3 Dec 2001 20:13:14 -0500 (EST) (envelope-from news) From: reina@nsi.edu (Tony Reina) X-Newsgroups: comp.databases.postgresql.admin Subject: Re: psql option for writing schema Date: 3 Dec 2001 17:13:11 -0800 Organization: http://groups.google.com/ Lines: 21 Message-ID: References: <9ubpl9$196u$1@news.tht.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Archive-Number: 200112/16 X-Sequence-Number: 2740 missive@frontiernet.net (Lee Harr) wrote in message news:<9ubpl9$196u$1@news.tht.net>... > On 30 Nov 2001 10:52:26 -0800, Tony Reina wrote: > > I seem to remember a psql option that dumped out the table schema. I > > can't seem to find it in the man for psql. Could someone point out the > > option to me? > > > > In psql \? is your friend. > > Probably what you want is \d tableName No. I know that one. I had thought it was a psql option, but what I wanted was actually a pg_dump option called '--schema-only'. pg_dump --schema-only db_name Thanks for the help anyway. -Tony