Re: [BUGS] small bug in ADD CONSTRAINT

2004-03-13 Thread Tom Lane
Joseph Shraibman <[EMAIL PROTECTED]> writes: > This works: > ALTER TABLE segment ADD CONSTRAINT name unique(textfield, reseller); > This doesn't: > ALTER TABLE segment ADD CONSTRAINT name unique(lower(textfield), > reseller); I don't think this is a bug. The unique-constraint syntax is

Re: [BUGS] small bug in ADD CONSTRAINT

2004-03-13 Thread Stephan Szabo
On Wed, 10 Mar 2004, Joseph Shraibman wrote: > This works: > > ALTER TABLE segment ADD CONSTRAINT name unique(textfield, reseller); > > This doesn't: > ALTER TABLE segment ADD CONSTRAINT name unique(lower(textfield), > reseller); > > I had to create a unique index. I don't think this is a

[BUGS] small bug in ADD CONSTRAINT

2004-03-13 Thread Joseph Shraibman
This works: ALTER TABLE segment ADD CONSTRAINT name unique(textfield, reseller); This doesn't: ALTER TABLE segment ADD CONSTRAINT name unique(lower(textfield), reseller); I had to create a unique index. ---(end of broadcast)--- TIP 7: don't