pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jon Horsman <horshaq@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Foreign Unique Constraint
Date: Tue, 27 Mar 2007 10:27:18 -0400
Message-ID: <4f4c2a010703270727l28ad24c6if8881ad6253f9253@mail.gmail.com> (raw)
In-Reply-To: <20070327133642.GB19137@a-kretschmer.de>
References: <4f4c2a010703270621h5137a4e5rb515a9be9034a543@mail.gmail.com>
	<20070327133642.GB19137@a-kretschmer.de>

> > create table table1 (
> > id SERIAL PRIMARY KEY
> > extension UNIQUE,
>
> I can't find anything about this syntax in the docs...

Oops, i'm missing a comma on that first line, should have been:

create table table1 (
id SERIAL PRIMARY KEY,
extension UNIQUE,
)

> I think, you should write a TRIGGER for this.

Ok, i'll look into how that works.  Anyone have any other input?

Thanks,

Jon



view thread (11+ messages)  latest in thread

Message-ID: <4f4c2a010703270727l28ad24c6if8881ad6253f9253@mail.gmail.com>
Permalink:  ../4f4c2a010703270727l28ad24c6if8881ad6253f9253@mail.gmail.com/
Also on:    postgresql.org/message-id/4f4c2a010703270727l28ad24c6if8881ad6253f9253@mail.gmail.com

 · 

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: horshaq@gmail.com
  Subject: Re: Foreign Unique Constraint
  In-Reply-To: <4f4c2a010703270727l28ad24c6if8881ad6253f9253@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox