Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjePQ-0002T1-Uc for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Oct 2015 02:24:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZjePP-0004X3-W6 for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Oct 2015 02:24:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZjeOn-0003qA-Js for pgsql-bugs@postgresql.org; Wed, 07 Oct 2015 02:24:09 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZjeOk-00046Y-31 for pgsql-bugs@postgresql.org; Wed, 07 Oct 2015 02:24:08 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.50.144]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 204E1400D0D; Tue, 6 Oct 2015 19:24:05 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 45E8D170F; Tue, 6 Oct 2015 23:24:02 -0300 (CLT) Date: Tue, 6 Oct 2015 23:24:02 -0300 From: Alvaro Herrera To: irina.guberman@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13665: Foreign Key constraint doesn't work Message-ID: <20151007022402.GA4405@alvherre.pgsql> References: <20151006224212.632.12147@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151006224212.632.12147@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org irina.guberman@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 13665 > Logged by: Irina > Email address: irina.guberman@gmail.com > PostgreSQL version: 9.4.4 > Operating system: Mac > Description: > > I can enter rows with null value in a foreign key constrained column. Yes. This is not a bug. If you want to prohibit NULL values, you need to declare the column as NOT NULL. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs