Re: stored procs

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: stored procs
Date: 2011-09-29 01:42:19
Message-ID: 4E83CCFB.1010602@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/28/11 6:33 PM, J.V. wrote:
> Is is possible within a stored procedure to read all the tables in a
> schema into a list?
>
> From that list and for each table is it possible to find the foreign
> keys in that table?
>
> From that list of foreign keys, is it possible to find out which field
> in which table the FK corresponds to?
>
> I need to extract this meta-data for a project.
>

that metadata should all be available in the information_schema.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Venkat Balaji 2011-09-29 05:07:34 Re: : Looking for a PostgreSQL book
Previous Message J.V. 2011-09-29 01:34:03 stored proc