pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Lane <stevelcmc@mindspring.com>
To: pgsql-admin@postgresql.org
Subject: Using the system tables
Date: Mon, 18 Dec 2000 20:47:35 -0600
Message-ID: <200012190247.eBJ2lZ636165@mail.postgresql.org> (raw)

Hi all:

I'm writing an admin client for postgres and I'm having a tough time
figuring out how some of the system tables work. I have two questions:

1) Is there any place where the system tables and their fields and uses are
documented? I can piece together some of the function by doing things in
psql and watching what queries get generated, but I have not found answers
to all my questions, for example:

2) Which system tables do I query to find all the PRIMARY KEY and UNIQUE
constraints on a table? Other tools I have seen do this do it by find all
indexes for a table but this doesn't seem to distinguish between PRIMARY KEY
and UNIQUE.

That's probably enough for now. Thanks in advance for any help.

-- sgl

----------
Steve Lane
Senior Project Manager
Chris Moyer Consulting Inc., Chicago
833 W. Chicago Ave. Suite 203
Chicago, IL 60622
312 433-2421 (V)    slane@fmpro.com
312 850-3930 (F)    http://www.fmpro.com

***
Beginner to Advanced FileMaker & Lasso training.
For class and registration information, please visit
http://www.fmpro.com/cmc_classes/,
email training@fmpro.com, or call Josie Graham at 404-467-9301.
***




Message-ID: <200012190247.eBJ2lZ636165@mail.postgresql.org>
Permalink:  ../200012190247.eBJ2lZ636165@mail.postgresql.org/
Also on:    postgresql.org/message-id/200012190247.eBJ2lZ636165@mail.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: stevelcmc@mindspring.com
  Subject: Re: Using the system tables
  In-Reply-To: <200012190247.eBJ2lZ636165@mail.postgresql.org>
  References: <200012190247.eBJ2lZ636165@mail.postgresql.org>

* 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