pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: D'Arcy J.M. Cain <darcy@druid.net>
To: Paul Lambert <paul.lambert@autoledgers.com.au>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Quick question re foreign keys.
Date: Wed, 24 Oct 2007 01:27:05 -0400
Message-ID: <20071024012705.5f253946.darcy@druid.net> (raw)
In-Reply-To: <471EB55F.5050600@autoledgers.com.au>
References: <471EA7D5.9040403@autoledgers.com.au>
	<21715.1193193880@sss.pgh.pa.us>
	<471EB55F.5050600@autoledgers.com.au>

On Wed, 24 Oct 2007 11:00:47 +0800
Paul Lambert <paul.lambert@autoledgers.com.au> wrote:
> It's marked not null as a result of being part of the primary key for 
> that table which I can't really get around.
> 
> I can get away with not having the foreign key though, so I'll have to 
> go down that path.

It can't be the primary key and have NULLs.  It sounds to me like you
have a design problem somewhere.

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (9+ messages)  latest in thread

Message-ID: <20071024012705.5f253946.darcy@druid.net>
Permalink:  ../20071024012705.5f253946.darcy@druid.net/
Also on:    postgresql.org/message-id/20071024012705.5f253946.darcy@druid.net

 · 

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: darcy@druid.net, paul.lambert@autoledgers.com.au, tgl@sss.pgh.pa.us
  Subject: Re: Quick question re foreign keys.
  In-Reply-To: <20071024012705.5f253946.darcy@druid.net>

* 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