From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: steps to ensure referential integrity
Date: Mon, 22 Sep 2003 11:44:55 -0400
Message-ID: <3F6F18F7.4000400@virginia.edu> (raw)
I have inherited a database that was originally created in postgres
version 6.? There were no steps taken at that time to implement
constraints to ensure referential integrity. There are no FK
constraints, PK constraints, etc..
Most of what currently exists is done in the existing code. I would like
to change this and am interested in getting suggestions. I expect that
PK constraints on each table as well as all FK constraints should be in
place. Anything else that I should consider?
I have indexes currently set up on a variety of fields, including PK
fields. Do the constraints automatically generate indexes on these
fields such that I should remove the ones created at the end of my script?
Thanks in advance for the suggestions!
Jodi
--
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>
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: jkanter@virginia.edu
Subject: Re: steps to ensure referential integrity
In-Reply-To: <3F6F18F7.4000400@virginia.edu>
References: <3F6F18F7.4000400@virginia.edu>
* 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