Re: Database metadata queries (WAS Re: Moving from MySQL to PGSQL....some questions)

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Shawn Harrison <harrison(at)tbc(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Database metadata queries (WAS Re: Moving from MySQL to PGSQL....some questions)
Date: 2004-03-02 17:02:47
Message-ID: 20040302170247.GA27448@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 01, 2004 at 11:09:32 -0600,
Shawn Harrison <harrison(at)tbc(dot)net> wrote:
>
> Would it be worthwhile to move many of these \d queries into the system
> schema, as views on various system tables? I've thought that it would be
> very useful to be able to access these things through the web or other
> clients. I could see the benefit of providing users with a consistent
> interface
> to such "database metadata", no matter what client one is using. (OTOH, one
> could argue, learning to do that is a pgsql rite-of-passage. ;-> ).

If you are using 7.4.x look at the information_schema schema. This is going
to provide a stable way to get meta data.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bas Scheffers 2004-03-02 17:30:32 Re: Max/min of 2 values function, plpgsql efficency?
Previous Message Andrew Sullivan 2004-03-02 16:48:04 Re: How to Cancel a query ?