Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zhfo6-0003Ho-N8 for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Oct 2015 15:30:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zhfo5-0002la-KC for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Oct 2015 15:30:05 +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.84) (envelope-from ) id 1Zhf2f-0001aj-4d for pgsql-bugs@postgresql.org; Thu, 01 Oct 2015 14:41:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zhf2d-0004ZK-0e for pgsql-bugs@postgresql.org; Thu, 01 Oct 2015 14:41:04 +0000 MIME-Version: 1.0 Subject: BUG #13659: Constraint names truncated without error To: pgsql-bugs@postgresql.org From: jtc331@gmail.com Date: Thu, 01 Oct 2015 14:40:27 +0000 Message-ID: <20151001144027.348.87665@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.1 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 13659 Logged by: James Coleman Email address: jtc331@gmail.com PostgreSQL version: 9.4.4 Operating system: OS X (and Linux etc.) Description: If I create the following schema: create table t(n integer); alter table t add constraint test_contrainst_that_has_a_very_long_name_to_trigger_the_character_limit check (n != 1); the constraint name appears to be automatically truncated without error, as confirmed with: SELECT tc.constraint_name, tc.table_name FROM information_schema.table_constraints AS tc WHERE tc.table_name = 't' Since PG raises errors when index names, for example, are too long, I believe it should do the same for constraints. I discussed this with Magnus at PostgresOpen and he agreed that the behavior should be the same and that if it weren't it was likely a bug. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs