Re: Porting from MySql - meta data issues - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Porting from MySql - meta data issues
Date
Msg-id 20020407002435.67755e62.alvherre@atentus.com
Whole thread Raw
In response to Re: Porting from MySql - meta data issues  (Geoff Caplan <geoff@advantae.com>)
Responses Re: Porting from MySql - meta data issues
List pgsql-general
En Fri, 05 Apr 2002 17:13:40 +0100
Geoff Caplan <geoff@advantae.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."

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER TABLE & NOT NULL
Next
From: "Thomas T. Thai"
Date:
Subject: DATE datatype = NULL?