Re: Describe Table

From: Erik Jones <erik(at)myemma(dot)com>
To: danap(at)dandymadeproductions(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Describe Table
Date: 2007-12-17 17:33:38
Message-ID: AB0DA566-22CA-4D99-B743-F87516E70FDD@myemma.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Dec 17, 2007, at 10:56 AM, <danap(at)dandymadeproductions(dot)com>
<danap(at)dandymadeproductions(dot)com> wrote:

> I've reviewed much of the documentation and the forums,
> but unable to seem to find a easy way to obtain the same
> thing as the 'psql \d table' through sql. I know I can create
> through collecting info on table, but seems there must be an
> easier way. I desire to create a standard type SQL dump
> syntax.

If you start psql with the -E flag, it will display all sql generated
by internal commands such as those generated by \d commands.

Erik Jones

Software Developer | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Colin Wetherbee 2007-12-17 17:34:27 Re: Describe Table
Previous Message Rodrigo De León 2007-12-17 17:27:34 Re: passing a multiple join to a function?