Re: Setting a pre-existing index as a primary key

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Setting a pre-existing index as a primary key
Date: 2008-05-10 02:48:15
Message-ID: 48250CEF.4090802@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
> Added to TODO:
>
>> Proposed Implementation
>>
>> 1. Verify that the index named is a unique index
>> 2. Check index columns for NOT NULL constraints
>> 3. If indexed columns are not already NOT NULL, apply NOT NULL
>> 4. If NOT NULL succeeds, complete the operation (catalogs,
>> dependencies, ...), else bail out.
>>
>> Any comments, ideas, suggestions?

I would add:

5. Modify index name to use appropriate naming style.

Joshua D. Drake

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-05-10 03:06:54 Re: gsoc08, text search selectivity, pg_statistics holding an array of a different type
Previous Message Robert Hodges 2008-05-10 01:59:53 Re: Deterministic locking in PostgreSQL