Re: EXCLUDE constraint with not equals

Поиск
Список
Период
Сортировка
От Kai Groner
Тема Re: EXCLUDE constraint with not equals
Дата
Msg-id CALiRuxnj+_H+BEauMKfn8xN0QXygLu4f0XgHLh-YNkqp7q55ww@mail.gmail.com
обсуждение исходный текст
Ответ на Re: EXCLUDE constraint with not equals  (Kai Groner <kai@gronr.com>)
Список pgsql-general
On Tue, Mar 3, 2015 at 11:15 AM, Kai Groner <kai@gronr.com> wrote:
I found it necessary to add the gist_text_ops opclass for the inequality:

CREATE TABLE person (
  id INTEGER PRIMARY KEY,
  "user" TEXT,
  email TEXT NOT NULL,
  EXCLUDE USING gist (email WITH =, "user" gist_text_ops WITH <>)
    WHERE ("user" IS NOT NULL));

Is that expected?

Never mind.  I was creating the extension on the wrong database and misunderstood the error.


Kai
 

В списке pgsql-general по дате отправления:

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Performance on DISABLE TRIGGER (resend)
Следующее
От: Francisco Olarte
Дата:
Сообщение: Re: