Re: [HACKERS] More ADD CONSTRAINT behaviour questions

2001-07-22 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: >> 1. A non-unique index is already defined over (a, b) >> >> - Either add new index or promote existing one to unique? > Promoting is in my too-hard basket, so I will simply add a new unique index? > Too bad if it slows them down, as they sh

RE: [HACKERS] More ADD CONSTRAINT behaviour questions

2001-07-22 Thread Christopher Kings-Lynne
OK, so just to summarize: > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher > Kings-Lynne > Sent: Tuesday, 10 July 2001 9:39 AM > To: Hackers > Subject: [HACKERS] More ADD CONSTRAINT behaviour questions > >

Re: [HACKERS] More ADD CONSTRAINT behaviour questions

2001-07-09 Thread Bruce Momjian
> "Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > > 6. A unique index is already defined over (b, a) > > > - As above. Technically a different index, but effect > > as far as uniqueness is concerned is identical? > > This case *must not* be an error IMHO: it's perfectly reason

Re: [HACKERS] More ADD CONSTRAINT behaviour questions

2001-07-09 Thread Stephan Szabo
On Tue, 10 Jul 2001, Christopher Kings-Lynne wrote: > When someone issues this command: > > ALTER TABLE test ADD UNIQUE (a, b); > > What happens when: > > 1. A non-unique index is already defined over (a, b) > > - Either add new index or promote existing one to unique? Well, either wor

Re: [HACKERS] More ADD CONSTRAINT behaviour questions

2001-07-09 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > 6. A unique index is already defined over (b, a) > - As above. Technically a different index, but effect > as far as uniqueness is concerned is identical? This case *must not* be an error IMHO: it's perfectly reasonable to ha

[HACKERS] More ADD CONSTRAINT behaviour questions

2001-07-09 Thread Christopher Kings-Lynne
When someone issues this command: ALTER TABLE test ADD UNIQUE (a, b); What happens when: 1. A non-unique index is already defined over (a, b) - Either add new index or promote existing one to unique? 2. A non-unique index is already defined over (b, a) - As above? 3. A prima