Re: Shorthand for foreign key indices - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: Shorthand for foreign key indices
Date
Msg-id 20050508171054.GC88920@decibel.org
Whole thread Raw
In response to Shorthand for foreign key indices  (Brendan Jurd <direvus@gmail.com>)
Responses Re: Shorthand for foreign key indices
List pgsql-general
On Mon, May 09, 2005 at 02:05:14AM +1000, Brendan Jurd wrote:
> CREATE TABLE foo (
>  foo int NOT NULL REFERENCES bar INDEX
> );
>
> ... would be marvellous

I agree that it would be handy. Another possibility is throwing a NOTICE
or even WARNING if you create a foreign key that isn't covered by an
index.

> My apologies if this has been answered before, but a search of the
> -general mailing list was not fruitful.

FYI, often times new ideas are only discussed on -hackers, so you should
search there as well.
--
Jim C. Nasby, Database Consultant               decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL History
Next
From: wayne schlemitz
Date:
Subject: starting