From: Bruno Wolff III <bruno@wolff.to>
To: Daniel Ariel <pgsqlinterfaces@netzach.co.il>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Obtaining information on the schema of tables which I do not own
Date: Wed, 14 Dec 2005 11:39:55 -0600
Message-ID: <20051214173955.GA9238@wolff.to> (raw)
In-Reply-To: <Pine.LNX.4.58.0512122253330.25426@perpetual.jerusalem.plus.com>
References: <Pine.LNX.4.58.0512122253330.25426@perpetual.jerusalem.plus.com>
On Mon, Dec 12, 2005 at 23:02:52 +0200,
Daniel Ariel <pgsqlinterfaces@netzach.co.il> wrote:
>
> Dear list,
>
> I am currently developing an application which needs to know information
> about table schema in order to display them correctly (specificly
> foreign keys, default values and not null characteristics).
>
> For security reasons I would prefer for it not to run as superuser.
You don't have to be a superuser to see the catalog tables. In fact people
sometimes complain about that.
>
> I may often wish to display tables which I do not own and potentially
> not even have anything other than SELECT permissions to. I will need the
> schema information for these tables.
Probably you should start by seeing if the information schema provides what
you need:
http://developer.postgresql.org/docs/postgres/information-schema.html
If you need more than that, then you probably want to look at the documentation
for the system catalogs:
http://developer.postgresql.org/docs/postgres/catalogs.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: bruno@wolff.to, pgsqlinterfaces@netzach.co.il
Subject: Re: Obtaining information on the schema of tables which I do not own
In-Reply-To: <20051214173955.GA9238@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox