Re: newbie question... how do I get table structure?

From: Harald Fuchs <hf118(at)protecting(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: newbie question... how do I get table structure?
Date: 2004-02-06 13:12:13
Message-ID: pu1xp8tkr6.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <4022FB80(dot)6090205(at)commandprompt(dot)com>,
"Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:

> Aaron Bratcher wrote:
>> What command can I use to get the structure of a given table?
>>

> If psql is client

> \d tablename

Without psql you can use

pg_dump -s DBNAME -t TBLNAME

from your shell prompt.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Gibson 2004-02-06 14:04:04 Casting 'record' to a composite type.
Previous Message Shridhar Daithankar 2004-02-06 12:35:32 Re: Starting the Server ?