Re: Porting from MySql - meta data issues

From: Alvaro Herrera <alvherre(at)atentus(dot)com>
To: Geoff Caplan <geoff(at)advantae(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, mail(at)joeconway(dot)com, jeff_eckermann(at)yahoo(dot)com
Subject: Re: Porting from MySql - meta data issues
Date: 2002-04-07 04:24:35
Message-ID: 20020407002435.67755e62.alvherre@atentus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

En Fri, 05 Apr 2002 17:13:40 +0100
Geoff Caplan <geoff(at)advantae(dot)com> escribió:

> Thanks folks - useful responses.
>
> In the longer run, though, it would be good if there were a more accessible
> set of functions or queries (such as the MySql SHOW queries), which made
> this kind of meta-data more accessible.

You can also use the pg_tables view, for example, and the system
catalogs for the rest (pg_database, pg_attribute).

Anyway, there's little use for SHOW queries, as you can always poke into
the system catalogs. That's something you can't do in MySQL, and is the
reason for the SHOW hack.

--
Alvaro Herrera (<alvherre[a]atentus.com>)
"Everybody understands Mickey Mouse. Few understand Hermann Hesse.
Hardly anybody understands Einstein. And nobody understands Emperor Norton."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2002-04-07 04:48:59 DATE datatype = NULL?
Previous Message Tom Lane 2002-04-07 01:52:04 Re: ALTER TABLE & NOT NULL