pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <pg@rbt.ca>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Richard Huxton <dev@archonet.com>
Cc: Markus Bertheau <twanger@bluetwanger.de>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: olly@lfix.co.uk, pgsql-sql@postgresql.org, Bruce Momjian <pgman@candle.pha.pa.us>
Subject: Re: multi column foreign key for implicitly unique columns
Date: Wed, 18 Aug 2004 12:46:14 -0400
Message-ID: <1092847573.32799.148.camel@jester> (raw)
In-Reply-To: <4123837C.30408@Yahoo.com>
References: <1092734724.2627.4.camel@dicaprio.akademie1.de>
	<1092735576.28365.48.camel@linda>
	<1092736197.2627.12.camel@dicaprio.akademie1.de>
	<200408171945.15663.josh@agliodbs.com>
	<41235A90.1080300@Yahoo.com>
	<1092836961.2630.3.camel@dicaprio.akademie1.de>
	<41236277.5060903@Yahoo.com>
	<22808.1092842209@sss.pgh.pa.us>
	<41237DA2.9090405@archonet.com>
	<1535.1092845917@sss.pgh.pa.us>
	<4123837C.30408@Yahoo.com>

On Wed, 2004-08-18 at 12:27, Jan Wieck wrote:
> On 8/18/2004 12:18 PM, Tom Lane wrote:
> 
> > Richard Huxton <dev@archonet.com> writes:
> >> * Allow multiple unique constraints to share an index where one is a 
> >> superset of the others' columns.
> > 
> >> That way you can mark it unique without having the overhead of multiple 
> >> indexes.
> > 
> > That just moves the uncertain-dependency problem over one spot, ie, it's
> > the fabricated unique constraint that you can't pin down the
> > requirements for.
> 
> If we allow for a unique index, that

Silly question, but why does UNIQUE require an index at all? Yes,
current implementation does, and agreed that checks will be mighty slow
without an index (so are CASCADES to a non-indexed column)...





view thread (38+ messages)  latest in thread

Message-ID: <1092847573.32799.148.camel@jester>
Permalink:  ../1092847573.32799.148.camel@jester/
Also on:    postgresql.org/message-id/1092847573.32799.148.camel@jester

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pg@rbt.ca, JanWieck@Yahoo.com, tgl@sss.pgh.pa.us, dev@archonet.com, twanger@bluetwanger.de, josh@agliodbs.com, pgman@candle.pha.pa.us
  Subject: Re: multi column foreign key for implicitly unique columns
  In-Reply-To: <1092847573.32799.148.camel@jester>

* 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