Thread: Metadata

Metadata

From
André Volpato
Date:
Hello,

I need constraint definitions like pg_indexes.indexdef , in order to
drop / create them on the fly.

BTW, where can I find a complete doc about Postgres Metadata ?

- AV

Re: Metadata

From
Erik Jones
Date:
On Aug 30, 2007, at 2:45 PM, André Volpato wrote:

> Hello,
>
> I need constraint definitions like pg_indexes.indexdef , in order
> to drop / create them on the fly.
>
> BTW, where can I find a complete doc about Postgres Metadata ?
>
> - AV

The system catalogs are in the manual appendix.  However, for what
your looking for, type

\df pg_get*

in psql and you see a listing of available functions that'll give you
just what you're looking for and are documented in Section 9.19 of
the manual (http://www.postgresql.org/docs/8.2/interactive/functions-
info.html).

Erik Jones

Software Developer | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com