Re: Are there commands to enquire about table structure?

From: "Ben" <reply(at)to-the-newsgroup(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Are there commands to enquire about table structure?
Date: 2004-01-31 20:11:19
Message-ID: 14c4c4e8ac7903b0085b81457b69c158@news.teranews.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 31 Jan 2004 02:22:09 +0000, Lee Harr wrote:

> In 7.4 anyhow, I bet you can do much of this with the
> information_schema. This one would be ...
>
> SELECT count(*)
> FROM information_schema.columns
> WHERE table_name='mytable';

Sounds very good; however, the DB in question is 7.3.2 - no such namespace
exists there. If we can get the IP people to sign off on upgrading, I'll
look into this mechanism. We've got megabytes of SQL designed for
Postgres, though, and any changes have to be vetted against the whole
system before we can use them, something that takes many months.

--Ben

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-01-31 20:13:20 Re: Large object insert/update and oid use
Previous Message Louis LeBlanc 2004-01-31 19:54:35 Re: Large object insert/update and oid use