Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9cgL-0005qJ-2u for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 20:30:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9cgI-00007g-Iq for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 20:30:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9cgI-00007W-At for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 20:30:54 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9cgD-0001ps-5X for pgsql-general@postgresql.org; Fri, 20 Apr 2018 20:30:53 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 9DFB5C715E74 for ; Fri, 20 Apr 2018 13:30:46 -0700 (MST) Date: Fri, 20 Apr 2018 13:30:46 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1524256246645-0.post@n3.nabble.com> In-Reply-To: <6b96b2ad-4c89-cf11-8dcd-78ec7300d36c@aklaver.com> References: <1524160534707-0.post@n3.nabble.com> <7cb5806e-7371-5c19-1c7b-b8ac556bdfb5@aklaver.com> <24449.1524164237@sss.pgh.pa.us> <2795.1524165702@sss.pgh.pa.us> <1524188994110-0.post@n3.nabble.com> <4f528d7d-90d0-55d1-f017-b72d730080db@aklaver.com> <6b96b2ad-4c89-cf11-8dcd-78ec7300d36c@aklaver.com> Subject: Re: Problem with trigger makes Detail record be invalid MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Well, talking about responsabilities, I think one of responsabilities of a mature database is that it can only accept data it was configured for. If you try to store a timestamp in a integer field or a huge numeric value in a smallint field, Postgres will block you because that operation is not acceptable. So, it's not acceptable to break referential integrity, is it ? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html