agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: unique constraint definition within create table
Date: Tue, 8 Dec 2015 13:05:34 +0100
Message-ID: <20151208120534.GA5488@tux> (raw)
In-Reply-To: <566675D5.7060401@2ndquadrant.fr>
References: <20151202063621.GA5526@tux>
<566675D5.7060401@2ndquadrant.fr>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Vik Fearing <vik@2ndquadrant.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°
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (6+ messages)
Message-ID: <20151208120534.GA5488@tux>
Permalink: ../20151208120534.GA5488@tux/
Also on: postgresql.org/message-id/20151208120534.GA5488@tux
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: akretschmer@spamfence.net
Subject: Re: unique constraint definition within create table
In-Reply-To: <20151208120534.GA5488@tux>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox