Re: unique constraint definition within create table

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: unique constraint definition within create table
Date: 2015-12-08 12:05:34
Message-ID: 20151208120534.GA5488@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Vik Fearing <vik(at)2ndquadrant(dot)fr> wrote:

> > But is there a way to define the unique constraint within the create table - command?
>
> You can use exclusion constraints for this.

Yeah!

Great. I love this exclusion constraint, but it doesn't occurred to me.

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Moore 2015-12-08 19:07:49 call by reference vs call by value
Previous Message test 2015-12-08 08:39:52 来自test的邮件