Re: tablemeta-data

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Erik Price <eprice(at)ptc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: tablemeta-data
Date: 2003-05-23 04:25:43
Message-ID: 20030523042543.GR40542@flake.decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have you tried \l and \d in psql?

See also
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=catalogs.html

On Thu, May 22, 2003 at 12:58:21PM -0400, Erik Price wrote:
> Hi,
>
> Is there a way to execute a query that returns meta-data about the
> tables? Specifically I am interested in a psql command to display
> information about a table's column names and types.
>
> I have moved from MySQL to PostgreSQL to expand my horizons but the SHOW
> DATABASES and DESCRIBE some_table commands are the ones I find myself
> missing the most. Perhaps there's some SQL that approximates it.
>
> Thanks,
>
> Erik
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Jim C. Nasby (aka Decibel!) jim(at)nasby(dot)net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2003-05-23 04:39:56 Re: Pl/PgSql: Loop over Array
Previous Message CSN 2003-05-23 03:49:43 Re: Query failed: ERROR: catalog is missing 1 attribute(s) for relid 456086