Re: Inspecting a DB - psql or system tables ?

From: fork <forkandwait(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Inspecting a DB - psql or system tables ?
Date: 2011-05-27 17:57:08
Message-ID: loom.20110527T195331-496@post.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andre Majorel <aym-2lqsgp <at> teaser.fr> writes:

>
> Suppose you want to write a program that connects to a
> PostgreSQL database and lists its tables and views, the type of
> their columns and their relationships (REFERENCES) for automatic
> joins.

I personally would try to hit the "informat_schema", which is a bunch of views
on system activity that follows a standard. I am not sure if what you want is in
there, like locks or other stuff, but for table names etc it works well.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tomas Vondra 2011-05-27 18:26:33 Re: Inspecting a DB - psql or system tables ?
Previous Message Andre Majorel 2011-05-27 17:24:56 Inspecting a DB - psql or system tables ?