Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B48179FC63F for ; Wed, 24 Oct 2007 11:29:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 26904-02 for ; Wed, 24 Oct 2007 11:28:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 2A4579FA067 for ; Wed, 24 Oct 2007 11:28:17 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id f5so172645nfh for ; Wed, 24 Oct 2007 07:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=2/093C/UsS22t2zkW4mrLgOUP4GYIWvEkv7ZPjs8GUI=; b=e5Mm5wPJQqGUUH9spIw3QQ7xqpfGRUoz+gBKBKYuGBlDR/9dgP7Nvyx1Wgbolu0kwWfoPKXJ3oLWXhHIrBHafVsxxFJcwU9uflC4XKPXIvrgoeGh/Sl0/UQuUbtMgzlA9g0XXghyXX4HVbizEPBdVqyaxPRimqRNxn3AWlr7Eh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=apMPJja/5gTV7wGXZalKPDvn6gDAGdTLIMKGHuzSyIfCKkxppp6VQC9z0lWD/fYJUW2E/f5hpvrEOwurRl9ZY+Z55//70eU+7kcFOVG6LqIhZ9AIyUtmW1IKmd0ZCRGxS0B13SH65JPdrOY4HOL1KFwXFgvzEjJ4maNAI1NMqD0= Received: by 10.82.138.6 with SMTP id l6mr1418919bud.1193236064457; Wed, 24 Oct 2007 07:27:44 -0700 (PDT) Received: by 10.82.116.9 with HTTP; Wed, 24 Oct 2007 07:27:44 -0700 (PDT) Message-ID: <36af4bed0710240727i3b8b2753q1fd0dd5397a3e4f0@mail.gmail.com> Date: Wed, 24 Oct 2007 19:57:44 +0530 From: "Robins Tharakan" Reply-To: robins@pobox.com To: "Paul Lambert" Subject: Re: Quick question re foreign keys. Cc: pgsql-sql In-Reply-To: <471EB767.5040009@autoledgers.com.au> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6214_32154764.1193236064446" References: <471EA7D5.9040403@autoledgers.com.au> <21715.1193193880@sss.pgh.pa.us> <471EB55F.5050600@autoledgers.com.au> <471EB767.5040009@autoledgers.com.au> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/108 X-Sequence-Number: 29480 ------=_Part_6214_32154764.1193236064446 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Forgive my butting in, but frankly, most of the times, whenever I find myself in a very 'exceptional problem' such as this one, I always end up questioning the basic design due to which I am stuck in the first place. Paul, it seems that probably there is a basic design issue here. All the best :) Robins On 10/24/07, Paul Lambert wrote: > > Paul Lambert 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. > > > > Cheers, > > P. > > > > Ignore this whole thread actually. > > I need to rethink some of my design. > > -- > Paul Lambert > Database Administrator > AutoLedgers > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > ------=_Part_6214_32154764.1193236064446 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Forgive my butting in, but frankly, most of the times, whenever I find myself in a very 'exceptional problem' such as this one, I always end up questioning the basic design due to which I am stuck in the first place.

Paul, it seems that probably there is a basic design issue here.

All the best :)

Robins

On 10/24/07, Paul Lambert < paul.lambert@autoledgers.com.au> wrote:
Paul Lambert 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.
>
> Cheers,
> P.
>

Ignore this whole thread actually.

I need to rethink some of my design.

--
Paul Lambert
Database Administrator
AutoLedgers

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

------=_Part_6214_32154764.1193236064446--