X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B4241D1B8B3 for ; Thu, 28 Aug 2003 18:58:15 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 73253-02 for ; Thu, 28 Aug 2003 15:58:05 -0300 (ADT) Received: from mailav.tor1.inquent.com (mail.inquent.com [216.208.117.106]) by svr1.postgresql.org (Postfix) with ESMTP id 258E8D1B8A9 for ; Thu, 28 Aug 2003 15:58:04 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 247D91024D; Thu, 28 Aug 2003 14:50:08 -0400 (EDT) Received: from [10.0.2.5] (unknown [10.0.2.5]) by mailav.tor1.inquent.com (Postfix) with ESMTP id D1FBD10248; Thu, 28 Aug 2003 14:50:05 -0400 (EDT) Subject: Re: performance of foreign key constraints From: Rod Taylor To: teknokrat@yahoo.com Cc: Postgresql Performance In-Reply-To: References: <20030828102646.Q9762-100000@megazone.bigpanda.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-X0iTVE9TY5IHRIQvfunB" Message-Id: <1062097097.79027.214.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 28 Aug 2003 14:58:18 -0400 X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/438 X-Sequence-Number: 3254 --=-X0iTVE9TY5IHRIQvfunB Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > The references are all to the same table i.e. they are employee ids, so= =20 > leaving some and not others would make no sense. The table has no=20 > deletes, small amount of inserts and moderate amount of updates. However= =20 > there are many selects and its their performance I am most concerned with. Foreign keys have no impact on selects. Although this does sound like a rather strange design to me (20+ columns wide and they're all employee ids?) --=-X0iTVE9TY5IHRIQvfunB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/TlDI6DETLow6vwwRAqoQAJ0QqXBGDyDrWVSOzkNLjgyUNcOdewCfUngw WovGaADRmUrXn7CfgHnD6eY= =l6L4 -----END PGP SIGNATURE----- --=-X0iTVE9TY5IHRIQvfunB--